|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
|
|
|
|
<sql id="commonWhere">
|
|
<sql id="commonWhere">
|
|
- <if test= 'param.userId != null or param.cooperationNums != null or param.cameraId != null'>
|
|
|
|
|
|
+ <if test= 'param.userId != null or param.cooperationNumList != null or param.cameraId != null'>
|
|
and ( 1!=1
|
|
and ( 1!=1
|
|
</if>
|
|
</if>
|
|
<if test="param.userId != null">
|
|
<if test="param.userId != null">
|
|
@@ -45,10 +45,13 @@
|
|
<if test="param.cameraId !=null ">
|
|
<if test="param.cameraId !=null ">
|
|
or p.camera_id = #{param.cameraId}
|
|
or p.camera_id = #{param.cameraId}
|
|
</if>
|
|
</if>
|
|
- <if test="param.cooperationNums !=null and param.cooperationNums !=''">
|
|
|
|
- or p.num in ( #{param.cooperationNums} )
|
|
|
|
|
|
+ <if test="param.cooperationNumList !=null and param.cooperationNumList.size >0">
|
|
|
|
+ or p.num in
|
|
|
|
+ <foreach collection="param.cooperationNumList" item="sceneNum" open="(" separator="," close=")">
|
|
|
|
+ #{sceneNum}
|
|
|
|
+ </foreach>
|
|
</if>
|
|
</if>
|
|
- <if test= 'param.userId != null or param.cooperationNums != null or param.cameraId != null'>
|
|
|
|
|
|
+ <if test= 'param.userId != null or param.cooperationNumList != null or param.cameraId != null'>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
<if test="param.sceneType !=null and param.sceneType !=''">
|
|
<if test="param.sceneType !=null and param.sceneType !=''">
|