From 315ef5820062ba31eb821cc3c347e38a313b1976 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 15 一月 2026 16:43:31 +0800
Subject: [PATCH] 设备管理(1.设备台账 2.备件管理 3.巡检)

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

diff --git a/src/main/resources/mapper/quality/QualityTestStandardMapper.xml b/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
index 96448f5..be07a98 100644
--- a/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
+++ b/src/main/resources/mapper/quality/QualityTestStandardMapper.xml
@@ -7,18 +7,17 @@
         FROM quality_test_standard
         where
         1=1
-        <if test="qualityTestStandard.productId != null and qualityTestStandard.productId != '' ">
-            AND product_id = #{qualityTestStandard.productId}
+        <if test="c.standardNo != null and c.standardNo != '' ">
+            AND standard_no like concat('%',#{c.standardNo},'%')
         </if>
-    </select>
-    <select id="qualityTestStandardList" resultType="com.ruoyi.quality.pojo.QualityTestStandard">
-        SELECT
-        *
-        FROM quality_test_standard
-        where
-        1=1
-        <if test="qualityTestStandard.productId != null and qualityTestStandard.productId != '' ">
-            AND product_id = #{qualityTestStandard.productId}
+        <if test="c.standardName != null and c.standardName != '' ">
+            AND standard_name like concat('%',#{c.standardName},'%')
+        </if>
+        <if test="c.state != null and c.state != '' ">
+            AND state = #{c.state}
+        </if>
+        <if test="c.inspectType != null and c.inspectType != '' ">
+            AND inspect_type = #{c.inspectType}
         </if>
     </select>
 </mapper>

--
Gitblit v1.9.3