From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 93a4104..738774e
--- a/java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml
@@ -87,11 +87,18 @@
<if test="appId !=null and appId != ''">
and t.app_id= #{appId}
</if>
+ <if test="appIds !=null ">
+ and t.app_id in
+ <foreach collection="appIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+
<if test="blackListIp !=null and blackListIp != ''">
and t.black_list_ip= #{blackListIp}
</if>
<if test="name !=null and name != ''">
- and t.name= #{name}
+ and t.name like concat('%',#{name},'%')
</if>
<if test="securityCode !=null and securityCode != ''">
and t.security_code= #{securityCode}
@@ -147,6 +154,12 @@
<if test="appId !=null and appId != ''">
and t.app_id= #{appId}
</if>
+ <if test="appIds !=null ">
+ and t.app_id in
+ <foreach collection="appIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="blackListIp !=null and blackListIp != ''">
and t.black_list_ip= #{blackListIp}
</if>
--
Gitblit v1.8.0