|
@@ -24,6 +24,9 @@
|
|
|
,u.user_name,s.view_count,s.status,s.pay_status,'v3' as scene_version ,s.thumb
|
|
|
from t_scene_pro s
|
|
|
<include refid="commonWhere"></include>
|
|
|
+ <if test="param.sceneName != null and param.sceneName!='' ">
|
|
|
+ and s.scene_name like concat ('%',#{param.sceneName},'%')
|
|
|
+ </if>
|
|
|
and is_upgrade = 0
|
|
|
UNION
|
|
|
select s.title as sceneName ,s.num,s.create_time,c.sn_code,e.space as sceneSize
|
|
@@ -31,6 +34,9 @@
|
|
|
from t_scene_plus s
|
|
|
left join t_scene_plus_ext e on s.id = e.plus_id
|
|
|
<include refid="commonWhere"></include>
|
|
|
+ <if test="param.sceneName != null and param.sceneName!='' ">
|
|
|
+ and s.title like concat ('%',#{param.sceneName},'%')
|
|
|
+ </if>
|
|
|
) as tb
|
|
|
order by create_time desc
|
|
|
</select>
|
|
@@ -41,9 +47,6 @@
|
|
|
left join t_camera_detail d on c.id = d.camera_id
|
|
|
left join t_company co on d.company_id = co.id
|
|
|
where s.rec_status = 'A'
|
|
|
- <if test="param.sceneName != null and param.sceneName!='' ">
|
|
|
- and s.scene_name like concat ('%',#{param.sceneName},'%')
|
|
|
- </if>
|
|
|
<if test="param.snCode != null and param.snCode !='' ">
|
|
|
and c.sn_code like concat ('%',#{param.snCode},'%')
|
|
|
</if>
|