修复获取任务确实bug
This commit is contained in:
parent
39474fd69c
commit
82700a091c
@ -562,7 +562,8 @@ public class ResultRecordController extends AbstractController {
|
||||
) {
|
||||
//下面设置计算公式
|
||||
dto.setCalculate(setCalculateValue(calculateModels1, dto)) ;
|
||||
List<ResultTask> resultTasks = resultTaskService.selectResultTasksByDetailId(dto.getId());
|
||||
List<ResultTaskDto> resultTaskDtos = resultTaskService.selectResultTaskDtosByDetailId(dto.getId());
|
||||
dto.setTaskDtos(resultTaskDtos);
|
||||
weight = weight.add(dto.getCheckWeight());
|
||||
if(scoreDtos.size() > 0){
|
||||
//获取评分详细
|
||||
|
||||
@ -646,6 +646,7 @@ public class DingtalkBusiness {
|
||||
}
|
||||
|
||||
public String sendTaskNoticeMsg(Long detailId, Long taskId) {
|
||||
|
||||
return "OK";
|
||||
}
|
||||
public String sendNoticeMsg(ResultRecord lzResultRecord, List<StaffEntity> staffs) {
|
||||
|
||||
@ -44,4 +44,5 @@ public interface ResultTaskService extends IService<ResultTask> {
|
||||
List<ResultTask> selectResultTasksByDetailId(Long detailId);
|
||||
|
||||
void deleteTask(Long taskId);
|
||||
List<ResultTaskDto> selectResultTaskDtosByDetailId(Long detailId);
|
||||
}
|
||||
@ -206,4 +206,9 @@ public class ResultTaskServiceImpl extends ServiceImpl<ResultTaskMapper, ResultT
|
||||
taskProcessRecord.setLabel("将" +resultTask.getName() + "任务删除");
|
||||
taskProcessRecordService.insertTaskProcessRecord(taskProcessRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ResultTaskDto> selectResultTaskDtosByDetailId(Long detailId){
|
||||
return resultTaskMapper.selectResultTaskDtosByDetailId(detailId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@
|
||||
</update>
|
||||
|
||||
<select id="selectResultTaskDtosByDetailId" resultType="com.lz.modules.performance.dto.ResultTaskDto" >
|
||||
select name,process_rate from lz_result_task where detail_id=#{detailId} and is_delete = 0 order by order_by asc
|
||||
select id, is_delete, name,process_rate from lz_result_task where detail_id=#{detailId} and is_delete = 0 order by order_by asc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user