fix(bpm): 发起用户可能没有部门
发起用户可能没有部门,导致查询部门信息时报错 Signed-off-by: 今晚打老虎 <fengjiajie11@qq.com>pull/123/head
parent
7295b6a10d
commit
ced838f29f
|
@ -135,7 +135,7 @@ public class BpmProcessInstanceController {
|
|||
processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId()));
|
||||
AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId())).getCheckedData();
|
||||
DeptRespDTO dept = null;
|
||||
if (startUser != null) {
|
||||
if (startUser != null && startUser.getDeptId() != null) {
|
||||
dept = deptApi.getDept(startUser.getDeptId()).getCheckedData();
|
||||
}
|
||||
return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance,
|
||||
|
|
Loading…
Reference in New Issue