fix(bpm): 发起用户可能没有部门

发起用户可能没有部门,导致查询部门信息时报错

Signed-off-by: 今晚打老虎 <fengjiajie11@qq.com>
pull/123/head
今晚打老虎 2024-06-25 04:42:14 +00:00 committed by Gitee
parent 7295b6a10d
commit ced838f29f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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,