This commit is contained in:
杜建超 2020-12-11 14:52:35 +08:00
parent 4fef586a34
commit 9920612d0d
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,6 @@ public class TaskProcessRecordServiceImpl extends ServiceImpl<TaskProcessRecordM
List list = pageUtils.getList();
if(CollectionUtils.isNotEmpty(list)){
if(detailId == null){
ResultTask resultTask = resultTaskService.selectResultTaskById(taskId);
detailId = resultTask.getDetailId();
@ -124,6 +123,7 @@ public class TaskProcessRecordServiceImpl extends ServiceImpl<TaskProcessRecordM
ResultDetail resultDetail = resultDetailService.selectResultDetailById(detailId);
StaffEntity staffEntity = staffService.selectStaffById(resultDetail.getStaffId());
StaffOccupationEntity staffOccupationByStaffId = staffOccupationService.getStaffOccupationByStaffId(resultDetail.getStaffId());
List<TaskProcessRecordDto> dtos = list;
for(TaskProcessRecordDto dto:dtos){
dto.setTypeDesc(ProcessRecordEnum.findByType(dto.getType()).getDesc());

View File

@ -149,7 +149,7 @@
<select id="selectTaskProcessRecordsByTaskIdsAndType" resultType="com.lz.modules.performance.dto.TaskProcessRecordDto">
select gmt_create,remark,label,type from lz_task_process_record where is_delete = 0
select gmt_create,remark,label,type,use_type from lz_task_process_record where is_delete = 0
<if test="useType !=null">
and use_type = #{useType}
</if>