diff --git a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml index c4c764c1f..7fd115a98 100644 --- a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml +++ b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/mapper/mapping/SysUserMapper.xml @@ -26,6 +26,8 @@ left join hr_position hpos on suorg.position_id = hpos.position_id left join hr_organization hrorg on suorg.org_id = hrorg.org_id + + and suser.real_name like concat('%',#{sysUserRequest.realName},'%') @@ -35,9 +37,14 @@ and suser.status_flag like concat('%',#{sysUserRequest.statusFlag},'%') + and suorg.org_id in (select org_id from hr_organization where org_pids like CONCAT('%$[',#{sysUserRequest.orgId},'$]%') escape '$' or org_id=#{sysUserRequest.orgId} ) + + and suorg.main_flag = 'Y' + + and suorg.org_id in