java110 пре 4 година
родитељ
комит
983dad9b71

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/app/AppDto.java

@@ -26,6 +26,7 @@ public class AppDto extends PageDto implements Serializable {
 
 
 
 
     private String appId;
     private String appId;
+    private String[] appIds;
     private String blackListIp;
     private String blackListIp;
     private String name;
     private String name;
     private String securityCode;
     private String securityCode;
@@ -111,4 +112,12 @@ public class AppDto extends PageDto implements Serializable {
     public void setStatusCd(String statusCd) {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
         this.statusCd = statusCd;
     }
     }
+
+    public String[] getAppIds() {
+        return appIds;
+    }
+
+    public void setAppIds(String[] appIds) {
+        this.appIds = appIds;
+    }
 }
 }

+ 13 - 0
java110-db/src/main/resources/mapper/community/AppServiceDaoImplMapper.xml

@@ -87,6 +87,13 @@
         <if test="appId !=null and appId != ''">
         <if test="appId !=null and appId != ''">
             and t.app_id= #{appId}
             and t.app_id= #{appId}
         </if>
         </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 != ''">
         <if test="blackListIp !=null and blackListIp != ''">
             and t.black_list_ip= #{blackListIp}
             and t.black_list_ip= #{blackListIp}
         </if>
         </if>
@@ -147,6 +154,12 @@
         <if test="appId !=null and appId != ''">
         <if test="appId !=null and appId != ''">
             and t.app_id= #{appId}
             and t.app_id= #{appId}
         </if>
         </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 != ''">
         <if test="blackListIp !=null and blackListIp != ''">
             and t.black_list_ip= #{blackListIp}
             and t.black_list_ip= #{blackListIp}
         </if>
         </if>