导入表头升序处理

This commit is contained in:
wangliwen 2022-06-16 15:53:19 +08:00
parent e034129167
commit 64b44da859
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ public class ResourceExcelImportListener extends AnalysisEventListener<Map<Integ
infoList.add(attrEntity);
this.headMap.keySet().stream().skip(6).forEach(key -> { // 表头后6个
this.headMap.keySet().stream().sorted().skip(6).forEach(key -> { // 表头后6个
AttrEntity attrEntity_ = new AttrEntity();
attrEntity_.setAttrType(this.headMap.get(key));
attrEntity_.setAttrValue(date.get(key));
@ -332,7 +332,7 @@ public class ResourceExcelImportListener extends AnalysisEventListener<Map<Integ
resourceDTO.setType("基础设施");
resourceDTO.setName(date.get(0));
this.headMap.keySet().stream().skip(1).forEach(key -> { // 表头后1个
this.headMap.keySet().stream().sorted().skip(1).forEach(key -> { // 表头后1个
AttrEntity attrEntity_ = new AttrEntity();
attrEntity_.setAttrType(this.headMap.get(key));
attrEntity_.setAttrValue(date.get(key));