|
@@ -38,7 +38,7 @@
|
|
parameterType="com.platform.dao.dto.upms.SysUserDTO">
|
|
parameterType="com.platform.dao.dto.upms.SysUserDTO">
|
|
select distinct u.* from t_sys_user u
|
|
select distinct u.* from t_sys_user u
|
|
join t_sys_user_role role
|
|
join t_sys_user_role role
|
|
- on u.user_id=role.user_id
|
|
|
|
|
|
+ on u.user_id=role.user_id left join t_sys_role srole on role.role_id=srole.role_id
|
|
where 1=1
|
|
where 1=1
|
|
<if test="keyword !=null and keyword !=''">
|
|
<if test="keyword !=null and keyword !=''">
|
|
and (u.username like CONCAT('%',#{keyword},'%')
|
|
and (u.username like CONCAT('%',#{keyword},'%')
|
|
@@ -64,7 +64,7 @@
|
|
and role.role_id=#{roleId}
|
|
and role.role_id=#{roleId}
|
|
</if>
|
|
</if>
|
|
<if test="roleCode!=null and roleCode!=''">
|
|
<if test="roleCode!=null and roleCode!=''">
|
|
- and role.role_code=#{roleCode}
|
|
|
|
|
|
+ and srole.role_code=#{roleCode}
|
|
</if>
|
|
</if>
|
|
order by u.update_time desc
|
|
order by u.update_time desc
|
|
</select>
|
|
</select>
|