|
|
@@ -61,7 +61,8 @@ public class UpdateWaittStatusService { |
|
|
|
.eq(Business::getMark, MarkTypeEnum.VALID.getCode()) |
|
|
|
.orderByDesc(Business::getCreateTime)); |
|
|
|
|
|
|
|
if (CollectionUtil.isNotEmpty(businessList)) { |
|
|
|
if (CollectionUtil.isEmpty(businessList)) { |
|
|
|
log.info("业务数据为空"); |
|
|
|
inspectionMapper.updateById(inspectionUpdate); |
|
|
|
return; |
|
|
|
} |
|
|
@@ -80,7 +81,6 @@ public class UpdateWaittStatusService { |
|
|
|
inspectionMapper.updateById(inspectionUpdate); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
AirWeatherVO weather = (AirWeatherVO) result.getData(); |
|
|
|
String weatherStr = AirWeatherUtil.getWeather(weather); |
|
|
|
inspectionUpdate.setWeather(weatherStr); |
|
|
@@ -89,6 +89,7 @@ public class UpdateWaittStatusService { |
|
|
|
.eq(FlightData::getInspectionId, inspection.getId()) |
|
|
|
.eq(FlightData::getTenantId, inspection.getTenantId()) |
|
|
|
.eq(FlightData::getMark, MarkTypeEnum.VALID.getCode())); |
|
|
|
log.info("坐标数据,flightDataCount:{}", flightDataCount); |
|
|
|
if (flightDataCount > 0) { |
|
|
|
int index = (int) Math.ceil((double) flightDataCount / 2); |
|
|
|
FlightData flightData = flightDataMapper.selectOne(new LambdaQueryWrapper<FlightData>() |