From ae4a996ce351c55fa466187c74d790efe484dd32 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 15 八月 2023 18:01:47 +0800
Subject: [PATCH] 解bug
---
inventory-server/src/main/resources/mapper/RepertoryMapper.xml | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index 3172d85..f6ccf2a 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -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,13 +22,21 @@
<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!=''">
+ <if test="checkState!=null ">
and check_state=#{checkState}
</if>
order by id desc
</where>
</select>
+ <!--鏌ヨ搴撳瓨涓変釜瀛楁缁欐坊鍔犻攢鍞崟-->
+ <select id="getSale" resultType="java.util.Map">
+ select id, name, specifications, unit
+ from mom_ocean.repertory
+ where state = 1
+ and check_state = 1
+ and type = 0
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3