|
@@ -3,10 +3,11 @@
|
|
|
<mapper namespace="com.fdkankan.jp.xspace.mapper.ISceneXspaceMapper">
|
|
|
|
|
|
<select id="pageXspace" resultType="com.fdkankan.jp.xspace.vo.XspaceVO" parameterType="com.fdkankan.jp.xspace.dto.XspacePageDTO">
|
|
|
- SELECT sx.id, p.`title`,sx.`num`,sx.`serial`,u.`nick_name` as creator ,sx.`create_time`,sx.`update_time`,sx.`status`
|
|
|
+ SELECT sx.id, p.`title`,sx.`num`,sx.`serial`,u2.`nick_name` as creator ,sx.`create_time`,sx.`update_time`,sx.`status`
|
|
|
FROM t_scene_xspace sx
|
|
|
LEFT JOIN t_scene_plus p ON sx.`num` = p.`num`
|
|
|
LEFT JOIN t_user u ON sx.`user_id` = u.`id`
|
|
|
+ left join t_user u2 on sx.creator = u2.id
|
|
|
WHERE sx.`rec_status` = 'A'
|
|
|
<if test="param.userId != null">
|
|
|
AND sx.`user_id` = #{param.userId}
|
|
@@ -18,7 +19,7 @@
|
|
|
AND p.`title` LIKE concat('%', #{param.title}, '%')
|
|
|
</if>
|
|
|
<if test="param.creator != null and param.creator != ''">
|
|
|
- AND u.`nick_name` LIKE concat('%', #{param.creator}, '%')
|
|
|
+ AND u2.`nick_name` LIKE concat('%', #{param.creator}, '%')
|
|
|
</if>
|
|
|
<if test="param.timeStart != null">
|
|
|
AND sx.`create_time` >= #{param.timeStart}
|