‘linchangsheng’ há 1 mês atrás
pai
commit
8af1e6ae5b
1 ficheiros alterados com 12 adições e 0 exclusões
  1. 12 0
      src/main/resources/mapper/AdminMapper.xml

+ 12 - 0
src/main/resources/mapper/AdminMapper.xml

@@ -98,6 +98,18 @@
         ${ex.selected}
         FROM admin_websit a
         ${ex.query}
+        <if test="ex.companyIds != null and ex.companyIds.size > 0">
+            and company_id in
+            <foreach item="item" index="index" collection="ex.companyIds" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
+        <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
+            and websit_id in
+            <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
         <if test="ex.orderBy == null or ex.orderBy ==''">
             ORDER BY a.create_time DESC
         </if>