This commit is contained in:
lizhicheng 2022-10-27 14:56:55 +08:00
parent 0c88de3898
commit 5ac3e333c2
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public class HistoryController {
if (StringUtils.isNotEmpty(activityDTO.getStartUserId())) {
SysUserDTO userDTO = sysUserService.get(Long.valueOf(activityDTO.getStartUserId()));
activityDTO.setStartUserName(userDTO != null ? userDTO.getRealName() : "");
activityDTO.setStartUserDeptName(sysUserDao.getDeptNameByUserId(userDTO.getId().toString()));
activityDTO.setStartUserDeptName(userDTO != null ? sysUserDao.getDeptNameByUserId(userDTO.getId().toString()) : "");
}
if (StringUtils.isNotEmpty(activityDTO.getAssignee())) {
SysUserDTO userDTO = sysUserService.get(Long.valueOf(activityDTO.getAssignee()));