From 7b09f233bde70508f6db7e08e983e9a2c4bb3e99 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期五, 11 八月 2023 17:50:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index bbab250..3172d85 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -2,30 +2,33 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
 <mapper namespace="com.yuanchu.mom.mapper.RepertoryMapper">
     <select id="selectAllRepertory" resultType="java.util.Map">
-        select name,
+        select id,
+        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>
+            order by id desc
         </where>
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3