Browse Source

推送灵嗅设备数据,添加日志

tags/V1.0.1^2
wanjing 1 year ago
parent
commit
78d497c132
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/syncdata/SyncAirDataService.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/syncdata/SyncAirDataService.java View File

@@ -135,7 +135,7 @@ public class SyncAirDataService {
}
Inspection inspection = this.getInspection(response.getSerial());
if (ObjectUtil.isNull(inspection)) {
log.info("没有正在飞行的任务,serial={}", response.getSerial());
log.info("没有正在飞行的任务,无法关联推送的灵嗅数据,serial={}", response.getSerial());
return JsonResult.error("没有正在飞行的任务");
}
return JsonResult.success();
@@ -143,7 +143,7 @@ public class SyncAirDataService {

private Inspection getInspection(String serial) {
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()
.eq(Inspection::getEquipmentMountCode, serial)
// .eq(Inspection::getEquipmentMountCode, serial)
.eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())
.eq(Inspection::getMark, MarkEnum.VALID.getCode())
.orderByDesc(Inspection::getCreateTime)

Loading…
Cancel
Save