|
@@ -5,6 +5,8 @@
|
|
<select id="selectVOByKeyword" resultType="com.platform.dao.vo.SysUserVO"
|
|
<select id="selectVOByKeyword" resultType="com.platform.dao.vo.SysUserVO"
|
|
parameterType="com.platform.dao.dto.upms.SysUserDTO">
|
|
parameterType="com.platform.dao.dto.upms.SysUserDTO">
|
|
select u.* from t_sys_user u
|
|
select u.* from t_sys_user u
|
|
|
|
+ join t_sys_user_role role
|
|
|
|
+ on u.user_id=role.user_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},'%')
|
|
@@ -26,6 +28,9 @@
|
|
<if test="identityType !=null">
|
|
<if test="identityType !=null">
|
|
and u.identity_type = #{identityType}
|
|
and u.identity_type = #{identityType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="roleId!=null and roleId!=''">
|
|
|
|
+ and role.role_id=#{roleId}
|
|
|
|
+ </if>
|
|
order by u.update_time desc
|
|
order by u.update_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|