fix null dept

Signed-off-by: undefined <13834672+asdadadad@user.noreply.gitee.com>
rf
undefined 2024-04-16 11:09:18 +00:00 committed by Gitee
parent f4b69ac55a
commit 906cc50a07
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -786,7 +786,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
SysUser startUser = sysUserService.selectUserById(Long.parseLong(historicProcessInstance.getStartUserId()));
flowTask.setStartUserId(startUser.getNickName());
flowTask.setStartUserName(startUser.getNickName());
flowTask.setStartDeptName(startUser.getDept().getDeptName());
if(Objects.nonNull(startUser.getDept())) {
flowTask.setStartDeptName(startUser.getDept().getDeptName());
}
hisTaskList.add(flowTask);
}
page.setTotal(taskInstanceQuery.count());