|
@@ -30,7 +30,7 @@
|
|
|
<include refid="sceneJoinCamera"></include>
|
|
<include refid="sceneJoinCamera"></include>
|
|
|
WHERE is_upgrade = 0 and p.rec_status = 'A'
|
|
WHERE is_upgrade = 0 and p.rec_status = 'A'
|
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></include>
|
|
|
-
|
|
|
|
|
|
|
+ AND
|
|
|
<include refid="commonSceneWhere"></include>
|
|
<include refid="commonSceneWhere"></include>
|
|
|
<if test="param.sceneName !=null and param.sceneName !=''">
|
|
<if test="param.sceneName !=null and param.sceneName !=''">
|
|
|
and p.scene_name like CONCAT('%',#{param.sceneName},'%')
|
|
and p.scene_name like CONCAT('%',#{param.sceneName},'%')
|
|
@@ -46,7 +46,7 @@
|
|
|
<include refid="sceneJoinCamera"></include>
|
|
<include refid="sceneJoinCamera"></include>
|
|
|
WHERE p.rec_status = 'A'
|
|
WHERE p.rec_status = 'A'
|
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></include>
|
|
|
-
|
|
|
|
|
|
|
+ AND
|
|
|
<include refid="commonSceneWhere"></include>
|
|
<include refid="commonSceneWhere"></include>
|
|
|
<if test="param.sceneName !=null and param.sceneName !=''">
|
|
<if test="param.sceneName !=null and param.sceneName !=''">
|
|
|
and p.title like CONCAT('%',#{param.sceneName},'%')
|
|
and p.title like CONCAT('%',#{param.sceneName},'%')
|
|
@@ -111,7 +111,7 @@
|
|
|
|
|
|
|
|
<sql id="commonSceneWhere">
|
|
<sql id="commonSceneWhere">
|
|
|
<if test="param.sourceList !=null and param.sourceList.size >0">
|
|
<if test="param.sourceList !=null and param.sourceList.size >0">
|
|
|
- and scene_source in
|
|
|
|
|
|
|
+ scene_source in
|
|
|
<foreach item="sourceId" collection="param.sourceList" open="(" separator="," close=")">
|
|
<foreach item="sourceId" collection="param.sourceList" open="(" separator="," close=")">
|
|
|
#{sourceId}
|
|
#{sourceId}
|
|
|
</foreach>
|
|
</foreach>
|