From 35091697a5421218d31e7e2d2c58b6a5385cc663 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 17 八月 2023 09:58:02 +0800
Subject: [PATCH] 改动

---
 inventory-server/src/main/resources/mapper/RepertoryMapper.xml |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index b556cba..e978167 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -5,8 +5,8 @@
         select id,
         name,
         specifications,
-        code,
-        check_state,
+        quality_traceability,
+        check_result,
         user_name,
         DATE_FORMAT(create_time, '%Y-%m-%d') '鍏ュ簱鏃ユ湡',
         note
@@ -14,7 +14,7 @@
         <where>
             and state=1
             <if test="name!=null and name!=''">
-                and name LIKE  CONCAT('%',#{name},'%')
+                and name LIKE CONCAT('%',#{name},'%')
             </if>
             <if test="specifications!=null and specifications!=''">
                 and specifications LIKE CONCAT('%',#{specifications},'%')
@@ -22,12 +22,13 @@
             <if test="time!=null and time!=''">
                 and create_time=#{time}
             </if>
-            <if test="type!=null and type!=''">
+            <if test="type!=null ">
                 and type=#{type}
             </if>
-            <if test="checkState!=null and checkState!=''">
-                and check_state=#{checkState}
+            <if test="result!=null ">
+                and check_result=#{result}
             </if>
+            order by id desc
         </where>
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3