This commit is contained in:
2025-12-31 10:14:22 +08:00
parent 402167dfb9
commit d0d978b2a3
@@ -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();