From 74b0d9c5ab1dc316b29f8525dcffe45225d4c43c Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 16 十月 2026 10:29:23 +0800
Subject: [PATCH] Merge branch 'dev_海西州_惠牧' into dev_business

---
 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