fix
This commit is contained in:
parent
f51bf5a98b
commit
baed7fe436
@ -40,4 +40,7 @@ public class TaskProcessRecordDto {
|
||||
//1,修改名称,2修改进度 ,3名称和进度都修改
|
||||
@ApiModelProperty(value = "0表示记录,不传全部", name = "useType")
|
||||
private Integer useType;
|
||||
//1,修改名称,2修改进度 ,3名称和进度都修改
|
||||
@ApiModelProperty(value = "职位", name = "position")
|
||||
private String position;
|
||||
}
|
||||
|
||||
@ -5,7 +5,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.lz.common.utils.PageUtils;
|
||||
import com.lz.modules.app.entity.StaffEntity;
|
||||
import com.lz.modules.app.entity.StaffOccupationEntity;
|
||||
import com.lz.modules.app.model.TaskModel;
|
||||
import com.lz.modules.app.service.StaffOccupationService;
|
||||
import com.lz.modules.app.service.StaffService;
|
||||
import com.lz.modules.performance.dao.TaskProcessRecordMapper;
|
||||
import com.lz.modules.performance.dto.ResultTaskDto;
|
||||
@ -53,6 +55,8 @@ public class TaskProcessRecordServiceImpl extends ServiceImpl<TaskProcessRecordM
|
||||
|
||||
@Autowired
|
||||
private StaffService staffService;
|
||||
@Autowired
|
||||
private StaffOccupationService staffOccupationService;
|
||||
|
||||
|
||||
|
||||
@ -119,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());
|
||||
@ -126,6 +131,7 @@ public class TaskProcessRecordServiceImpl extends ServiceImpl<TaskProcessRecordM
|
||||
dto.setAvatar(staffEntity1.getAvatar());
|
||||
dto.setStaffName(staffEntity1.getName());
|
||||
});
|
||||
Optional.ofNullable(staffOccupationByStaffId).ifPresent(staffOccupationEntity -> dto.setPosition(staffOccupationEntity.getPosition()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -165,8 +165,6 @@
|
||||
select * from lz_task_process_record where is_delete = 0 and (detail_id = #{taskModel.detailId} or task_id=#{taskModel.taskId} ) and use_type=#{taskModel.useType} order by id desc
|
||||
</select>
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<select id="selectCommentTaskProcessRecordByDetailId" resultType="TaskProcessRecord" >
|
||||
select * from lz_task_process_record where detail_id=#{detailId} and is_delete = 0 and use_type=1 order by id desc limit 1
|
||||
</select>
|
||||
@ -175,6 +173,5 @@
|
||||
select * from lz_task_process_record where task_id=#{taskId} and is_delete = 0 and use_type=1 order by id desc limit 1
|
||||
</select>
|
||||
|
||||
>>>>>>> 0759c9bb2ac2d85becab14db3150110f2bf20e63
|
||||
</mapper>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user