修改员工管理
This commit is contained in:
parent
3620064c2f
commit
0278eb6134
@ -20,21 +20,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND sur.role_id = ( SELECT id FROM system_role WHERE `code` = #{roleCode} ))
|
||||
</select>
|
||||
<select id="selectListByRoleId" resultType="cn.iocoder.yudao.module.system.api.user.dto.UserDTO"
|
||||
parameterType="cn.iocoder.yudao.module.system.controller.admin.permission.vo.role.RolePageReqVO">
|
||||
select su.*
|
||||
from system_user_role sr
|
||||
left join system_users su on sr.user_id = su.id
|
||||
left join system_role sr2 on sr.role_id = sr2.id
|
||||
<where>
|
||||
su.deleted = 0 and sr2.service_package_id = 'jiance'
|
||||
<if test="role.roleId != null">
|
||||
and sr.role_id = #{role.roleId}
|
||||
</if>
|
||||
<if test="role.nickname != null">
|
||||
and su.nickname like CONCAT('%',#{role.nickname},'%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
parameterType="cn.iocoder.yudao.module.system.controller.admin.permission.vo.role.RolePageReqVO">
|
||||
select distinct su.*
|
||||
from system_users su
|
||||
left join system_user_role sr on su.id = sr.user_id
|
||||
left join system_role sr2 on sr.role_id = sr2.id
|
||||
<where>
|
||||
su.deleted = 0 and sr2.service_package_id = 'jiance'
|
||||
<if test="role.roleId != null">
|
||||
and sr.role_id = #{role.roleId}
|
||||
</if>
|
||||
<if test="role.nickname != null">
|
||||
and su.nickname like CONCAT('%',#{role.nickname},'%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectByRoleId" resultType="cn.iocoder.yudao.module.system.api.user.dto.UserDTO">
|
||||
SELECT
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user