|
|
@@ -42,7 +42,8 @@ public class FlyDataTask { |
|
|
|
log.info("执行定时执行飞行任务:" + LocalDateTime.now()); |
|
|
|
List<Inspection> inspectionList = inspectionMapper.selectList(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.between(Inspection::getInspectionTime, startTime, endTime) |
|
|
|
//是查询任务表中所有正在执行中的任务(暂时注释掉,没问题删除) |
|
|
|
//.between(Inspection::getInspectionTime, startTime, endTime) |
|
|
|
//查询巡检方式为机场的任务 |
|
|
|
.eq(Inspection::getInspectionType, InspectionTypeEnum.AIRPORT.getCode()) |
|
|
|
//查询未执行任务 |
|
|
@@ -56,9 +57,7 @@ public class FlyDataTask { |
|
|
|
//遍历任务列表中正在执行的任务进行飞行数据入库 |
|
|
|
for (Inspection inspection : inspectionList) { |
|
|
|
log.info("执行定时,获取飞行数据: inspectionId:{}", inspection.getId()); |
|
|
|
|
|
|
|
flyDataService.getFlyData(inspection); |
|
|
|
|
|
|
|
log.info("执行定时,获取飞行数据结束: inspectionId:{}"); |
|
|
|
} |
|
|
|
} |