From e5bcaf0bb598235c5b3747af79fe4a271345997e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 05 二月 2026 10:22:23 +0800
Subject: [PATCH] fix: 生产订单完成数量出现负数

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

diff --git a/src/main/resources/mapper/quality/QualityTestStandardMapper.xml b/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
index b9ad8ed..5c20733 100644
--- a/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
+++ b/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
@@ -13,10 +13,10 @@
         <if test="c.standardName != null and c.standardName != '' ">
             AND standard_name like concat('%',#{c.standardName},'%')
         </if>
-        <if test="c.state != null and c.state != '' ">
+        <if test="c.state != null ">
             AND state =#{c.state}
         </if>
-        <if test="c.inspectType != null and c.inspectType != '' ">
+        <if test="c.inspectType != null ">
             AND inspect_type =#{c.inspectType}
         </if>
     </select>

--
Gitblit v1.9.3