From 96a6f204fadc4c2516f7ca00c6f1f3874279b32b Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 24 六月 2026 15:38:33 +0800
Subject: [PATCH] fix: 多余字段列去除

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

diff --git a/src/main/resources/mapper/quality/QualityTestStandardMapper.xml b/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
index cd3fb66..57f4894 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>
@@ -24,11 +24,8 @@
         SELECT qts.*
         FROM quality_test_standard qts
                  left join quality_test_standard_binding qtsb on qtsb.test_standard_id = qts.id
-                 left join product_process pp on qts.process_id = pp.id
         WHERE qtsb.product_id = #{productId}
           AND qts.inspect_type = #{inspectType}
-        <if test="process!='' and process!=null">
-            and pp.name = #{process}
-        </if>
+        order by qts.id desc
     </select>
 </mapper>

--
Gitblit v1.9.3