‘linchangsheng’ 1 개월 전
부모
커밋
36884c2712
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/main/resources/mapper/CustomGoodsApplyMapper.xml

+ 6 - 0
src/main/resources/mapper/CustomGoodsApplyMapper.xml

@@ -15,6 +15,12 @@
                 #{item}
             </foreach>
         </if>
+        <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
+            and a.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>