lyhzzz 1 년 전
부모
커밋
641f2d0820
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/main/resources/mapper/ucenter/ScenePlusMapper.xml

+ 8 - 0
src/main/resources/mapper/ucenter/ScenePlusMapper.xml

@@ -36,6 +36,14 @@
         <if test="param.cameraId == null and param.userId !=null  and param.cooperationNumList !=null and param.cooperationNumList.size ==0 ">
             and   p.user_id = #{param.userId}
         </if>
+        <if test="param.cameraId == null and param.userId !=null  and param.cooperationNumList !=null and param.cooperationNumList.size >0 ">
+            and (  p.user_id = #{param.userId}  or p.num in
+            <foreach collection="param.cooperationNumList" item="coNum" open="(" separator="," close=")">
+                #{coNum}
+            </foreach>
+            )
+        </if>
+
     </sql>