‘linchangsheng’ 1 月之前
父节点
当前提交
2e872c13f0
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/main/resources/mapper/CommonMapper.xml

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

@@ -20,6 +20,14 @@
         FROM
         FROM
             admin_company a
             admin_company a
         ${ex.query}
         ${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>
 
 
     <select id="supplementRecordList" resultType="com.gree.mall.manager.bean.ums.UmsSupplementRecordVO">
     <select id="supplementRecordList" resultType="com.gree.mall.manager.bean.ums.UmsSupplementRecordVO">