From b69586892f0e0f8a5df6eb68a4a658468b46c2d0 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 29 九月 2022 09:55:56 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml
index 3055dff..eef9ee9 100755
--- a/java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml
@@ -109,6 +109,12 @@
<if test="unitId !=null and unitId != ''">
and t.unit_id= #{unitId}
</if>
+ <if test="unitIds !=null">
+ and t.unit_id in
+ <foreach collection="unitIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="unitNum !=null and unitNum != ''">
and t.unit_num= #{unitNum}
</if>
--
Gitblit v1.8.0