From bc672038e88a24d9f0f7127cd45c656a15c231a2 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期三, 09 八月 2023 09:10:49 +0800
Subject: [PATCH] MOM系统-8-9
---
inventory-server/src/main/resources/mapper/RepertoryMapper.xml | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index a3c0b4f..bbab250 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -12,18 +12,20 @@
DATE_FORMAT(create_time, '%Y-%m-%d') '鍏ュ簱鏃ユ湡',
note
from mom_ocean.repertory
- where state=1
- <if test="name!=null and name!=' '">
- and name LIKE CONCAT('%',#{name},'%')
- </if>
- <if test="specifications!=null and specifications!=' '">
- and specifications LIKE CONCAT('%',#{specifications},'%')
- </if>
- <if test="time!=null and time!=''">
- and create_time=#{time}
- </if>
- <if test="type!=null and type!=''">
- and type=#{type}
- </if>
+ <where>
+ and state=1
+ <if test="name!=null">
+ and name =#{name}
+ </if>
+ <if test="specifications!=null ">
+ and specifications=#{specifications}
+ </if>
+ <if test="time!=null ">
+ and create_time=#{time}
+ </if>
+ <if test="type!=null">
+ and type=#{type}
+ </if>
+ </where>
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3