From 4e4b96ef73db8d36d1cc7e2ec87d38d397c96078 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期四, 26 一月 2023 16:26:48 +0800
Subject: [PATCH] 优化审核代码
---
java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
index fe4992c..52d1c4a 100644
--- a/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
@@ -67,16 +67,17 @@
<if test="amount !=null and amount != ''">
, t.amount= #{amount}
</if>
- <if test="irId !=null and irId != ''">
- , t.ir_id= #{irId}
- </if>
- <if test="communityId !=null and communityId != ''">
- , t.community_id= #{communityId}
- </if>
+
where 1=1
<if test="resId !=null and resId != ''">
and t.res_id= #{resId}
</if>
+ <if test="irId !=null and irId != ''">
+ and t.ir_id= #{irId}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
</update>
--
Gitblit v1.8.0