未填资源所属部门时,指定提交人部门审核人审核

This commit is contained in:
wangliwen 2022-04-27 11:06:38 +08:00
parent fec96155a0
commit 3d97d7a2be
1 changed files with 9 additions and 0 deletions

View File

@ -120,6 +120,15 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
logger.error("未查到该部门对应的 " + roleName);
taskService.setAssignee(delegateTask.getId(), "1513432847327199233");
}
} else if (resourceMountApplyDTO.getDeptId() != null) {
SysUserDTO userDTO = sysUserService.getByDeptIdAndRoleId(Long.valueOf(resourceMountApplyDTO.getDeptId()), roleDTO.getId());
if (userDTO != null) {
logger.error("审批人id:" + userDTO.getId());
taskService.setAssignee(delegateTask.getId(), userDTO.getId().toString());
} else {
taskService.setAssignee(delegateTask.getId(), "1513432847327199233");
logger.error("未查到部门对应 " + resourceMountApplyDTO.getDeptId());
}
} else {
logger.error("大数据局名称:" + bigDateDeptName);
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);