|
|
@@ -33,10 +33,8 @@ import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.FileNotFoundException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.UUID; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author ChengWang |
|
|
@@ -106,8 +104,11 @@ public class QueryAirDataListService { |
|
|
|
vo.setPm_2_5(x.getPm25()); |
|
|
|
vo.setPm_10(x.getPm10()); |
|
|
|
vo.setVocs(x.getVocs()); |
|
|
|
vo.setSequence(x.getSequence()); |
|
|
|
airDataExcelVoList.add(vo); |
|
|
|
}); |
|
|
|
//对列表进行排序 |
|
|
|
airDataExcelVoList.stream().sorted(Comparator.comparing(AirDataExcelVo::getSequence)).collect(Collectors.toList()); |
|
|
|
|
|
|
|
String fileName = inspection.getName()+"+"+inspection.getCode()+".xlsx"; |
|
|
|
String filePath = UploadFileConfig.uploadFolder + "/data/" + fileName; |