This commit is contained in:
杜建超 2020-12-15 10:42:21 +08:00
parent 1563b63aa8
commit 9b8c07648e
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,7 @@ public class ResultTaskServiceImpl extends ServiceImpl<ResultTaskMapper, ResultT
if(staffEntity1 !=null){
resultTaskDto.setAvatar(staffEntity1.getAvatar());
resultTaskDto.setStaffName(staffEntity1.getName());
}
}

View File

@ -148,7 +148,10 @@ public class TaskProcessRecordServiceImpl extends ServiceImpl<TaskProcessRecordM
Optional.ofNullable(staffEntity).ifPresent(staffEntity12 -> {
dto.setAvatar(staffEntity12.getAvatar());
dto.setStaffName(staffEntity12.getName());
StaffOccupationEntity staffOccupation= staffOccupationService.getStaffOccupationByStaffId(staffEntity12.getId());
Optional.ofNullable(staffOccupation).ifPresent(staffOccupationEntity -> dto.setPosition(staffOccupationEntity.getPosition()));
});
}
}