diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml index 7aa78a465..09c7154c1 100644 --- a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml @@ -22,16 +22,16 @@ left join sys_user_org suorg on suser.user_id = suorg.user_id - and sys_user.real_name like concat('%',#{sysUserRequest.realName},'%') + and suser.real_name like concat('%',#{sysUserRequest.realName},'%') - and sys_user.account like concat('%',#{sysUserRequest.account},'%') + and suser.account like concat('%',#{sysUserRequest.account},'%') - and sys_user.status_flag like concat('%',#{sysUserRequest.statusFlag},'%') + and suser.status_flag like concat('%',#{sysUserRequest.statusFlag},'%') - and suorg.org_id = #{sysUserRequest.orgId} + and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%[',#{sysUserRequest.orgId},']%') or org_id=#{sysUserRequest.orgId}) and suser.del_flag = 'N' order by suser.create_time desc