From f4ef6d1f4489e0d4cbba1845792945b924c16228 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 14 十月 2026 18:29:56 +0800
Subject: [PATCH] feat: 客户签订合同统计 + MES 首页质检合格率
---
yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml b/yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml
index 33d6f00..b5ce7b0 100644
--- a/yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml
+++ b/yudao-module-mes/src/main/resources/mapper/home/MesHomeStatisticsMapper.xml
@@ -50,6 +50,27 @@
${@cn.iocoder.yudao.module.mes.enums.dv.MesDvRepairStatusEnum@APPROVING.status})
</select>
+ <!-- 鎸夋楠岀被鍨嬬粺璁¤川妫�鍗曠殑妫�楠岄噺涓庡悎鏍奸噺锛堜笉杩囨护鐘舵�侊紝鏃犳椂闂磋寖鍥撮檺鍒讹級 -->
+ <select id="selectQcQualifiedSummary" resultType="java.util.Map">
+ SELECT 'IQC' AS type,
+ IFNULL(SUM(check_quantity), 0) AS checkQuantity,
+ IFNULL(SUM(qualified_quantity), 0) AS qualifiedQuantity
+ FROM mes_qc_iqc
+ WHERE deleted = 0
+ UNION ALL
+ SELECT 'IPQC',
+ IFNULL(SUM(check_quantity), 0),
+ IFNULL(SUM(qualified_quantity), 0)
+ FROM mes_qc_ipqc
+ WHERE deleted = 0
+ UNION ALL
+ SELECT 'OQC',
+ IFNULL(SUM(check_quantity), 0),
+ IFNULL(SUM(qualified_quantity), 0)
+ FROM mes_qc_oqc
+ WHERE deleted = 0
+ </select>
+
<!-- 鎸夊ぉ鑱氬悎鎶ュ伐浜ч噺 -->
<select id="selectDailyFeedbackTrend" resultType="java.util.Map">
SELECT DATE_FORMAT(feedback_time, '%Y-%m-%d') AS date,
--
Gitblit v1.9.3