|
@@ -12,7 +12,8 @@
|
|
WHERE is_upgrade = 0 and p.rec_status = 'A' AND ( p.status = 1 OR p.status = -2) AND p.scene_type != 99
|
|
WHERE is_upgrade = 0 and p.rec_status = 'A' AND ( p.status = 1 OR p.status = -2) AND p.scene_type != 99
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></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},'%') or p.laser_title like concat ('%',#{param.sceneName},'%') )
|
|
|
|
+
|
|
</if>
|
|
</if>
|
|
UNION
|
|
UNION
|
|
SELECT p.id as id ,null as name ,0 as isFolder,null as type,null as parentId,p.create_time ,num,title as scene_name,description as scene_dec,
|
|
SELECT p.id as id ,null as name ,0 as isFolder,null as type,null as parentId,p.create_time ,num,title as scene_name,description as scene_dec,
|
|
@@ -25,7 +26,7 @@
|
|
WHERE p.rec_status = 'A' AND ( p.scene_status = 1 OR p.scene_status = -2) AND p.scene_type != 99
|
|
WHERE p.rec_status = 'A' AND ( p.scene_status = 1 OR p.scene_status = -2) AND p.scene_type != 99
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></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},'%') or p.laser_title like concat ('%',#{param.sceneName},'%') )
|
|
</if>
|
|
</if>
|
|
<if test="param.orderBy !=null and param.orderBy !=''">
|
|
<if test="param.orderBy !=null and param.orderBy !=''">
|
|
ORDER BY ${param.orderBy}
|
|
ORDER BY ${param.orderBy}
|