新增禁用用户不被考勤页面检索
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user