流程审批人过滤禁用的

master
pengqiang 2021-12-06 14:07:51 +08:00
parent f5fb315b94
commit efbba59ff2
1 changed files with 2 additions and 1 deletions
src/main/java/cn/palmte/work/service

View File

@ -459,7 +459,8 @@ public class AccountService {
if (roleIds == null || roleIds.isEmpty()) {
return new ArrayList<>();
}
String sql = "select u.id as id from sys_user_role ur left join sys_user u on u.id=ur.user_id where ur.is_deleted=0 and ur.role_id in (?)";
String sql = "select u.id as id from sys_user_role ur left join sys_user u on u.id=ur.user_id " +
" where ur.is_deleted=0 and ur.role_id in (?) and u.enabled=1 and u.is_deleted=0";
String ids = String.join("", roleIds);
List<Record> records = pagination.find(sql, ids);
if (records == null || records.isEmpty()) {