|
@@ -24,12 +24,15 @@
|
|
|
SELECT * FROM(
|
|
|
select s.scene_name ,s.num,s.create_time,s.space as sceneSize
|
|
|
,s.view_count,s.status,s.pay_status,'v3' as scene_version ,s.web_site , s.thumb
|
|
|
- ,null as algorithmTime,data_source,s.shoot_count,s.gps,s.user_id,s.camera_id,s.compute_time,null as location,null as mixture
|
|
|
+ ,null as algorithmTime,data_source,s.shoot_count,s.gps,s.user_id,s.camera_id,s.compute_time,null as location,null as mixture,s.laser_title
|
|
|
from t_scene_pro s
|
|
|
<include refid="commonWhere"></include>
|
|
|
- <if test="param.sceneName != null and param.sceneName!='' ">
|
|
|
+ <if test="param.isLaser ==0 and param.sceneName != null and param.sceneName!='' ">
|
|
|
and s.scene_name like concat ('%',#{param.sceneName},'%')
|
|
|
</if>
|
|
|
+ <if test="param.isLaser ==1 and param.sceneName != null and param.sceneName!='' ">
|
|
|
+ and s.laser_title like concat ('%',#{param.sceneName},'%')
|
|
|
+ </if>
|
|
|
<if test="param.shootCountMin != null ">
|
|
|
and s.shoot_count >= #{param.shootCountMin}
|
|
|
</if>
|
|
@@ -43,13 +46,16 @@
|
|
|
UNION ALL
|
|
|
select s.title as sceneName ,s.num,s.create_time,e.space as sceneSize
|
|
|
,e.view_count,s.scene_status as status,s.pay_status,'v4' as scene_version,e.web_site,e.thumb
|
|
|
- ,algorithm_time,data_source,e.shoot_count,e.gps,s.user_id,s.camera_id,e.compute_time,e.location,e.mixture
|
|
|
+ ,algorithm_time,data_source,e.shoot_count,e.gps,s.user_id,s.camera_id,e.compute_time,e.location,e.mixture,s.laser_title
|
|
|
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!='' ">
|
|
|
+ <if test="param.isLaser ==0 and param.sceneName != null and param.sceneName!='' ">
|
|
|
and s.title like concat ('%',#{param.sceneName},'%')
|
|
|
</if>
|
|
|
+ <if test="param.isLaser ==1 and param.sceneName != null and param.sceneName!='' ">
|
|
|
+ and s.laser_title like concat ('%',#{param.sceneName},'%')
|
|
|
+ </if>
|
|
|
<if test="param.shootCountMin != null ">
|
|
|
and e.shoot_count >= #{param.shootCountMin}
|
|
|
</if>
|