|
|
|
|
|
|
|
|
.orderByDesc(ThMission::getExecutionStartTime); |
|
|
.orderByDesc(ThMission::getExecutionStartTime); |
|
|
List<ThMission> thMissions = missionMapper.selectList(lambdaQueryWrapper); |
|
|
List<ThMission> thMissions = missionMapper.selectList(lambdaQueryWrapper); |
|
|
if (ObjectUtil.isEmpty(thMissions) || thMissions.size() == 0) { |
|
|
if (ObjectUtil.isEmpty(thMissions) || thMissions.size() == 0) { |
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "任务不存在!"); |
|
|
|
|
|
|
|
|
log.info("任务不存在!!"); |
|
|
|
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "任务不存在!!"); |
|
|
} |
|
|
} |
|
|
return thMissions.get(0); |
|
|
return thMissions.get(0); |
|
|
} |
|
|
} |