Bladeren bron

大气数据列表按UTC时间升序排列

tags/v1.0.2
chengwang 1 jaar geleden
bovenliggende
commit
140d5c83c1
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. +3
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java

+ 3
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java Bestand weergeven

@@ -94,7 +94,8 @@ public class QueryAirDataListService {
//获取当前任务id下的大气数据
List<AirData> airDataList = airDataMapper.selectList(Wrappers.<AirData>lambdaQuery()
.eq(AirData::getMark, MarkEnum.VALID.getCode())
.eq(AirData::getInspectionId, id));
.eq(AirData::getInspectionId, id)
.orderByAsc(AirData::getCUtcTime));
if(CollectionUtils.isEmpty(airDataList) || airDataList.size() == 0){
return JsonResult.error(AirDataEnum.AIR_DATA_IS_NOT_EXIST.getCode(),AirDataEnum.AIR_DATA_IS_NOT_EXIST.getMsg());
}
@@ -113,7 +114,7 @@ public class QueryAirDataListService {
airDataExcelVoList.add(vo);
});
//对列表进行排序
airDataExcelVoList.stream().sorted(Comparator.comparing(AirDataExcelVo::getSequence)).collect(Collectors.toList());
//airDataExcelVoList.stream().sorted(Comparator.comparing(AirDataExcelVo::getCUtcTime)).collect(Collectors.toList());

String fileName = inspection.getName()+"+"+inspection.getCode()+".xlsx";
String filePath = UploadFileConfig.uploadFolder + "/data/" + fileName;

Laden…
Annuleren
Opslaan