|
|
|
|
|
|
|
|
List<FlightData> flightDataList = flightDataMapper.selectListByInspection(map); |
|
|
List<FlightData> flightDataList = flightDataMapper.selectListByInspection(map); |
|
|
if(CollectionUtils.isEmpty(flightDataList) || flightDataList.size() == 0){ |
|
|
if(CollectionUtils.isEmpty(flightDataList) || flightDataList.size() == 0){ |
|
|
log.info("获取无人机数据信息,数据为空"); |
|
|
log.info("获取无人机数据信息,数据为空"); |
|
|
JsonResult.success("数据为空"); |
|
|
|
|
|
|
|
|
return JsonResult.success("数据为空"); |
|
|
} |
|
|
} |
|
|
//取最新的一条数据给前端 |
|
|
//取最新的一条数据给前端 |
|
|
FlightData flightData = flightDataList.get(0); |
|
|
FlightData flightData = flightDataList.get(0); |