Просмотр исходного кода

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
wanjing 1 год назад
Родитель
Сommit
a519306e2b
1 измененных файлов: 6 добавлений и 10 удалений
  1. +6
    -10
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java

+ 6
- 10
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java Просмотреть файл

@@ -168,15 +168,10 @@ public class PointFlightService {
}

if (mission.getAirportId() == request.getAirportId()) {
WarningRecord warningRecord = warningRecordMapper.selectOne(new LambdaQueryWrapper<WarningRecord>()
.eq(WarningRecord::getMissionId, mission.getId())
.eq(WarningRecord::getMark, MarkTypeEnum.VALID.getCode())
.orderByDesc(WarningRecord::getCreateTime)
.last(" limit 1"));
if (ObjectUtil.isNotNull(warningRecord)) {
ThMission missionTmp = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getId, warningRecord.getEmergencyMissionId())
.eq(ThMission::getMark, MarkEnum.VALID.getCode()));
ThMission missionTmp = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getEmergencyDataMissionId, mission.getId())
.eq(ThMission::getMark, MarkEnum.VALID.getCode()));
if (ObjectUtil.isNotNull(missionTmp)) {
if (TaskStatusEnum.FLIGHT.getCode() == missionTmp.getStatus()) {
log.info("原机场正在执行任务");
throw new ServiceException("发现该问题的机场正在执行任务");
@@ -186,7 +181,8 @@ public class PointFlightService {
ThMission missionTmp = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getAirportId, request.getAirportId())
.eq(ThMission::getStatus, TaskStatusEnum.FLIGHT.getCode())
.eq(ThMission::getMark, MarkEnum.VALID.getCode()));
.eq(ThMission::getMark, MarkEnum.VALID.getCode())
.last(" limit 1"));
if (ObjectUtil.isNotNull(missionTmp)) {
log.info("新机场正在执行任务");
throw new ServiceException("该机场正在执行任务");

Загрузка…
Отмена
Сохранить