未填资源所属部门时,指定提交人部门审核人审核
This commit is contained in:
parent
fec96155a0
commit
3d97d7a2be
|
@ -120,6 +120,15 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
||||||
logger.error("未查到该部门对应的 " + roleName);
|
logger.error("未查到该部门对应的 " + roleName);
|
||||||
taskService.setAssignee(delegateTask.getId(), "1513432847327199233");
|
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 {
|
} else {
|
||||||
logger.error("大数据局名称:" + bigDateDeptName);
|
logger.error("大数据局名称:" + bigDateDeptName);
|
||||||
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);
|
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);
|
||||||
|
|
Loading…
Reference in New Issue