commit
This commit is contained in:
@@ -29,7 +29,7 @@ public class FlowFghzxAssignmentHandler implements AssignmentHandler {
|
||||
Sys_role sysRole = sysRoleService.getByCode(RoleConstant.BRANCH_UNION_CHAIRMAN);
|
||||
String unionId = StrUtil.blankToDefault(execution.getArgs().getStr(FlowConst.INITIATOR_UNIT_UNION_ID), SecurityUtil.getUnionId());
|
||||
List<Sys_user_role> user_roles = dao.query(Sys_user_role.class, Cnd.where(Sys_user_role::getRoleId, "=", sysRole.getId()).and(Sys_user_role::getUnionId, "=", unionId));
|
||||
if (Lang.isNotEmpty(user_roles)) {
|
||||
if (Lang.isEmpty(user_roles)) {
|
||||
throw new BaseException("分工会主席没有设置,请联系校工会!", sysRole.getCode());
|
||||
}
|
||||
return user_roles.stream().map(Sys_user_role::getUserId).distinct().toList();
|
||||
|
||||
Reference in New Issue
Block a user