流程审批人过滤禁用的
parent
f5fb315b94
commit
efbba59ff2
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue