Commit 00610437 by 谢海旭

飞行督导

1 parent e04aa1b6
......@@ -1246,8 +1246,20 @@ public class SupervisorTaskInfoService {
}
public Page<SupervisorTeachingListDTO> pageTeachingRecords(RpcPagination<SupervisorTaskQueryDTO> request) {
SupervisorTaskQueryDTO condition = request.getCondition();
SupervisorTaskInfo taskInfo = supervisorTaskInfoMapper.selectByPrimaryKey(condition.getId());
if (taskInfo == null) {
throw new RpcServiceException(DefaultErrorEnum.DATA_NOT_EXIST, "任务不存在");
}
if (!TaskTypeEnum.COACHING_REQUIREMENT.getCode().equals(taskInfo.getTaskType())) {
throw new RpcServiceException(DefaultErrorEnum.SERVICE_ERROR, "非带教要求任务");
}
condition.setSupervisorPhone(taskInfo.getSupervisorPhone());
condition.setStartDate(taskInfo.getStartDate());
condition.setEndDate(taskInfo.getEndDate());
Page<SupervisorTeachingListDTO> page = PageHelper.startPage(request.getPageNum(), request.getPageSize());
List<SupervisorTeachingListDTO> list = supervisorTaskInfoMapper.listTeachingRecords(request.getCondition());
List<SupervisorTeachingListDTO> list = supervisorTaskInfoMapper.listTeachingRecords(condition);
return page;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!