导入表头升序处理
This commit is contained in:
parent
e034129167
commit
64b44da859
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue