From 772ce1ff99b32e0d8c5ee1135f8a9fb03eb9fc60 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 15 八月 2023 14:51:13 +0800
Subject: [PATCH] 添加校验
---
inventory-server/src/main/resources/mapper/RepertoryMapper.xml | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
index 11d1608..f6ccf2a 100644
--- a/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
+++ b/inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -22,10 +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!=''">
+ <if test="checkState!=null ">
and check_state=#{checkState}
</if>
order by id desc
@@ -36,5 +36,7 @@
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