导出排序(按照章节号从小到大)
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ public class WorkFlowController {
|
||||
exportExcelEO.setFileName(UUID.fastUUID().toString(true));
|
||||
}
|
||||
List<Map<String, Object>> dataList = exportExcelEO.getDataList().stream()
|
||||
.sorted(Comparator.comparing(a -> Double.valueOf(a.get("chapterNumber").toString())))
|
||||
.sorted(Comparator.comparing(a -> String.valueOf(a.get("chapterNumber").toString())))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Workbook excel = TableToExcel.createExcel(exportExcelEO.getColumnName(), dataList, null, exportExcelEO.getFileName());
|
||||
|
||||
Reference in New Issue
Block a user