新增禁用用户不被考勤页面检索

This commit is contained in:
2025-12-01 16:54:24 +08:00
parent 5d4c928678
commit 42c9b11992
2 changed files with 9 additions and 0 deletions

View File

@@ -15,4 +15,6 @@ public interface SysUserRoleMapper extends BaseMapperPlus<SysUserRoleMapper, Sys
List<Long> selectUserIdsByRoleId(Long roleId); List<Long> selectUserIdsByRoleId(Long roleId);
List<Long> selectUserIdsByNotRoleId(Long roleId); List<Long> selectUserIdsByNotRoleId(Long roleId);
List<Long> selectUserIdsByRoleIdAndEnable(Long l);
} }

View File

@@ -20,4 +20,11 @@
on u.user_id = sur.user_id and sur.role_id != #{roleId} on u.user_id = sur.user_id and sur.role_id != #{roleId}
</select> </select>
<select id="selectUserIdsByNotRoleId" resultType="java.lang.Long">
select u.user_id from sys_user u
inner join sys_user_role sur
on u.user_id = sur.user_id and sur.role_id != #{roleId}
where (u.status='0' or u.del_flag != '0')
</select>
</mapper> </mapper>