!123 【修复】工作流:发起用户可能没有部门
Merge pull request !123 from 今晚打老虎/master-jdk17
This commit is contained in:
commit
e44c21dc75
@ -135,7 +135,7 @@ public class BpmProcessInstanceController {
|
|||||||
processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId()));
|
processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId()));
|
||||||
AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId())).getCheckedData();
|
AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId())).getCheckedData();
|
||||||
DeptRespDTO dept = null;
|
DeptRespDTO dept = null;
|
||||||
if (startUser != null) {
|
if (startUser != null && startUser.getDeptId() != null) {
|
||||||
dept = deptApi.getDept(startUser.getDeptId()).getCheckedData();
|
dept = deptApi.getDept(startUser.getDeptId()).getCheckedData();
|
||||||
}
|
}
|
||||||
return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance,
|
return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance,
|
||||||
|
Loading…
Reference in New Issue
Block a user