From e8a75a44bdc130e8b162351c3c94c01f3d8ada5e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 10 八月 2023 17:58:00 +0800
Subject: [PATCH] 入库+发货

---
 inventory-server/src/main/resources/mapper/RepertoryMapper.xml |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index 35b3fe5..b556cba 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -6,27 +6,28 @@
         name,
         specifications,
         code,
-        requirements,
-        order_code,
-        seat,
+        check_state,
         user_name,
         DATE_FORMAT(create_time, '%Y-%m-%d') '鍏ュ簱鏃ユ湡',
         note
         from mom_ocean.repertory
         <where>
             and state=1
-            <if test="name!=null">
-                and name =#{name}
+            <if test="name!=null and name!=''">
+                and name LIKE  CONCAT('%',#{name},'%')
             </if>
-            <if test="specifications!=null ">
-                and specifications=#{specifications}
+            <if test="specifications!=null and specifications!=''">
+                and specifications LIKE CONCAT('%',#{specifications},'%')
             </if>
-            <if test="time!=null ">
+            <if test="time!=null and time!=''">
                 and create_time=#{time}
             </if>
-            <if test="type!=null">
+            <if test="type!=null and type!=''">
                 and type=#{type}
             </if>
+            <if test="checkState!=null and checkState!=''">
+                and check_state=#{checkState}
+            </if>
         </where>
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3