‘linchangsheng’ 1 hónapja
szülő
commit
2e872c13f0
1 módosított fájl, 8 hozzáadás és 0 törlés
  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">