From 1db3bc9e405c959566dd19b549aff743793362bd Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 18 八月 2023 18:06:33 +0800
Subject: [PATCH] 基础数据与生产计划

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

diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index b556cba..8c1802e 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -5,16 +5,16 @@
         select id,
         name,
         specifications,
-        code,
-        check_state,
+        quality_traceability,
         user_name,
         DATE_FORMAT(create_time, '%Y-%m-%d') '鍏ュ簱鏃ユ湡',
+        check_result,
         note
         from mom_ocean.repertory
         <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,10 @@
             <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>
+            order by id desc
         </where>
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3