|
@@ -77,8 +77,8 @@
|
|
|
rec_status, space, recommend, view_count, 'V1' AS build_type,1 as scene_source from `t_scene` s
|
|
|
WHERE rec_status = 'A' and user_id = #{param.userId}
|
|
|
and (status = -2 or status = 1)
|
|
|
- <if test= 'searchKey != null'>
|
|
|
- and s.scene_name like CONCAT('%',#{searchKey},'%') or s.num = #{searchKey}
|
|
|
+ <if test= 'param.searchKey != null'>
|
|
|
+ and s.scene_name like CONCAT('%',#{param.searchKey},'%') or s.num = #{param.searchKey}
|
|
|
</if>
|
|
|
union
|
|
|
SELECT s.id,s.scene_name, s.scene_dec, s.web_site, s.thumb, s.scene_type,
|
|
@@ -86,8 +86,8 @@
|
|
|
s.rec_status, s.space, s.recommend, s.view_count, s.build_type,s.scene_source FROM `t_scene_pro` s
|
|
|
WHERE rec_status = 'A' and scene_type != 99 and scene_source !=4 and user_id = #{param.userId}
|
|
|
and (status = -2 or status = 1)
|
|
|
- <if test= 'searchKey != null'>
|
|
|
- and s.scene_name like CONCAT('%',#{searchKey},'%') or s.num = #{searchKey}
|
|
|
+ <if test= 'param.searchKey != null'>
|
|
|
+ and s.scene_name like CONCAT('%',#{param.searchKey},'%') or s.num = #{param.searchKey}
|
|
|
</if>
|
|
|
) a
|
|
|
order by create_time desc
|