From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize
---
java110-db/src/main/resources/mapper/community/MaintainanceItemValueV1ServiceDaoImplMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/MaintainanceItemValueV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/MaintainanceItemValueV1ServiceDaoImplMapper.xml
index 7b0e81f..59831cd 100644
--- a/java110-db/src/main/resources/mapper/community/MaintainanceItemValueV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/MaintainanceItemValueV1ServiceDaoImplMapper.xml
@@ -24,6 +24,12 @@
<if test="itemId !=null and itemId != ''">
and t.item_id= #{itemId}
</if>
+ <if test="itemIds !=null">
+ and t.item_id in
+ <foreach collection="itemIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="valueId !=null and valueId != ''">
and t.value_id= #{valueId}
</if>
@@ -80,6 +86,12 @@
<if test="itemId !=null and itemId != ''">
and t.item_id= #{itemId}
</if>
+ <if test="itemIds !=null">
+ and t.item_id in
+ <foreach collection="itemIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="valueId !=null and valueId != ''">
and t.value_id= #{valueId}
</if>
--
Gitblit v1.8.0