Browse Source

重构代码

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
14dacb1514
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallBackService.java

+ 2
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallBackService.java View File

.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);
} }

Loading…
Cancel
Save