Procházet zdrojové kódy

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
wanjing před 1 rokem
rodič
revize
ad60fc22d0
2 změnil soubory, kde provedl 12 přidání a 4 odebrání
  1. +0
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java
  2. +12
    -3
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/warningrecord/query/QueryWarningRecordListByWarningIdService.java

+ 0
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java Zobrazit soubor

@@ -57,7 +57,6 @@ public class PointFlightService {

// 创建应急任务
ThMission mission = this.createMission(user, request);
log.info("进入调用机场平台,创建应急任务,mission={}", mission);

// 调用机场平台
// 修改原巡检任务状态为已完成

+ 12
- 3
tuoheng-admin/src/main/java/com/tuoheng/admin/service/warningrecord/query/QueryWarningRecordListByWarningIdService.java Zobrazit soubor

@@ -13,6 +13,7 @@ import com.tuoheng.admin.entity.request.warningrecord.QueryWarningRecordListByWa
import com.tuoheng.admin.entity.vo.warning.WarningListVo;
import com.tuoheng.admin.entity.vo.warning.WarningRecordVo;
import com.tuoheng.admin.enums.MarkEnum;
import com.tuoheng.admin.enums.MarkTypeEnum;
import com.tuoheng.admin.enums.TaskStatusEnum;
import com.tuoheng.admin.enums.UpdateOrCreateEnum;
import com.tuoheng.admin.mapper.ThMissionMapper;
@@ -68,6 +69,10 @@ public class QueryWarningRecordListByWarningIdService {
// 构造返回结果对象
List<WarningRecordVo> warningRecordVoList = this.buildWarningRecordVoList(warningRecordList);

for (WarningRecordVo warningRecordVo : warningRecordVoList) {
log.info("预警记录, warningRecordVo = {}", warningRecordVo);
}

return JsonResult.success(warningRecordVoList);
}

@@ -100,12 +105,16 @@ public class QueryWarningRecordListByWarningIdService {
for (WarningRecordVo warningRecordVo : warningRecordVoList) {
oldMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getId, warningRecordVo.getMissionId())
.eq(ThMission::getMark, 1));
.eq(ThMission::getMark, MarkTypeEnum.VALID.getCode()));
newMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getId, warningRecordVo.getEmergencyMissionId())
.eq(ThMission::getMark, 1));
.eq(ThMission::getMark, MarkTypeEnum.VALID.getCode()));
if (oldMission.getAirportId().equals(newMission.getAirportId())) {
warningRecordVo.setStatus(oldMission.getStatus());
if (0 == oldMission.getEmergencyDataMissionId()) {
warningRecordVo.setStatus(oldMission.getStatus());
} else {
warningRecordVo.setStatus(newMission.getStatus());
}
} else {
warningRecordVo.setStatus(newMission.getStatus());
}

Načítá se…
Zrušit
Uložit