From 4f263663066e351114e871d6017632a4eb406869 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期六, 22 八月 2026 17:18:31 +0800
Subject: [PATCH] fix(quality): 修正质量检测SQL中的条件判断错误

---
 src/main/resources/mapper/quality/QualityInspectMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/quality/QualityInspectMapper.xml b/src/main/resources/mapper/quality/QualityInspectMapper.xml
index a42d11a..112be1a 100644
--- a/src/main/resources/mapper/quality/QualityInspectMapper.xml
+++ b/src/main/resources/mapper/quality/QualityInspectMapper.xml
@@ -320,7 +320,7 @@
         SELECT t.modelType,
                COALESCE(SUM(
                                 CASE
-                                    WHEN pp.product_name = '鍘熸枡' 鍘熸枡 t.modelType = 0 THEN qi.quantity
+                                    WHEN pp.product_name = '鍘熸枡' AND t.modelType = 0 THEN qi.quantity
                                     WHEN pp.product_name = '鍗婃垚鍝�' AND t.modelType = 1 THEN qi.quantity
                                     WHEN pp.product_name = '鎴愬搧' AND t.modelType = 2 THEN qi.quantity
                                     ELSE 0

--
Gitblit v1.9.3