|
@@ -3,7 +3,13 @@
|
|
|
<mapper namespace="com.fdkankan.manage.mapper.IJyUserShareMapper">
|
|
|
|
|
|
<select id="pageList" resultType="com.fdkankan.manage.vo.response.UserShareVo">
|
|
|
- select us.id,u.user_id ,u.ry_nick_name,u.ry_no,u.status from jy_user u left join jy_user_share us on u.id = us.jy_user_id
|
|
|
+ select us.id,u.user_id ,u.ry_nick_name,u.ry_no,u.status from jy_user u
|
|
|
+ <if test="param.type !=null and param.type == 0">
|
|
|
+ left join jy_user_share us on u.id = us.jy_user_id
|
|
|
+ </if>
|
|
|
+ <if test="param.type !=null and param.type == 1">
|
|
|
+ left join jy_user_share us on u.id = us.main_jy_user_id
|
|
|
+ </if>
|
|
|
where u.rec_status = 'A' and us.rec_status = 'A'
|
|
|
<if test="param.ryNickName != null and param.ryNickName !=''">
|
|
|
and u.ry_nick_name like concat ('%',#{param.ryNickName},'%')
|