This commit is contained in:
wangliwen 2022-04-21 20:18:12 +08:00
parent 36220f9e70
commit b0b7d752ae
1 changed files with 9 additions and 3 deletions

View File

@ -64,10 +64,16 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
} else { } else {
logger.info("表单内单位名称:" + abilityApplicationDTO.getUnit()); logger.info("表单内单位名称:" + abilityApplicationDTO.getUnit());
SysDeptDTO deptDTO = sysDeptService.getByName(abilityApplicationDTO.getUnit()); SysDeptDTO deptDTO = sysDeptService.getByName(abilityApplicationDTO.getUnit());
logger.info("deptDTOId:" + deptDTO.getId()); if (deptDTO != null) {
deptId = deptDTO.getId(); logger.info("deptDTOId:" + deptDTO.getId());
deptId = deptDTO.getId();
}
}
SysUserDTO userDTO = null;
if (deptId != null) {
userDTO = sysUserService.getByDeptIdAndRoleId(deptId, roleDTO.getId()); // 搜出审批人
} }
SysUserDTO userDTO = sysUserService.getByDeptIdAndRoleId(deptId, roleDTO.getId()); // 搜出审批人
delegateTask.setAssignee("1513432847327199233"); delegateTask.setAssignee("1513432847327199233");
if (userDTO != null) { if (userDTO != null) {