‘linchangsheng’ il y a 1 mois
Parent
commit
2e872c13f0
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      src/main/resources/mapper/CommonMapper.xml

+ 8 - 0
src/main/resources/mapper/CommonMapper.xml

@@ -20,6 +20,14 @@
         FROM
             admin_company a
         ${ex.query}
+
+        <if test="ex.companyIds != null and ex.companyIds.size > 0">
+            and admin_company_id in
+            <foreach item="item" index="index" collection="ex.companyIds" open="(" separator="," close=")">
+                #{item}
+            </foreach>
+        </if>
+
     </select>
 
     <select id="supplementRecordList" resultType="com.gree.mall.manager.bean.ums.UmsSupplementRecordVO">