commit
This commit is contained in:
+7
-8
@@ -714,9 +714,13 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void attrInfoShowExport(List<SarStandardsInfo> sarlist,Map<String,String> dicMap) throws Exception {
|
public void attrInfoShowExport(List<SarStandardsInfo> sarlist) throws Exception {
|
||||||
|
|
||||||
|
|
||||||
|
//查询字典表,形成Hash映射提升速度
|
||||||
|
List<DicTypeEO> dicInfo = dicTypeEODao.getDicInfo("dic_type_code", "dic_type_name");
|
||||||
|
Map<String, String> dicMap = dicInfo.stream()
|
||||||
|
.filter(item-> !item.getDicTypeCode().isEmpty())
|
||||||
|
.collect(Collectors.toMap(DicTypeEO::getDicTypeCode,DicTypeEO::getDicTypeName,(value1, value2 )->value2));
|
||||||
|
|
||||||
|
|
||||||
for (SarStandardsInfo row : sarlist) {
|
for (SarStandardsInfo row : sarlist) {
|
||||||
@@ -1705,12 +1709,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
}
|
}
|
||||||
List<SarStandardsInfo> getList = dao.getSarStandardsExportInfo(page);
|
List<SarStandardsInfo> getList = dao.getSarStandardsExportInfo(page);
|
||||||
|
|
||||||
//查询字典表,形成Hash映射提升速度
|
attrInfoShowExport(getList);
|
||||||
List<DicTypeEO> dicInfo = dicTypeEODao.getDicInfo("dic_type_code", "dic_type_name");
|
|
||||||
Map<String, String> dicMap = dicInfo.stream()
|
|
||||||
.filter(item-> !item.getDicTypeCode().isEmpty())
|
|
||||||
.collect(Collectors.toMap(DicTypeEO::getDicTypeCode,DicTypeEO::getDicTypeName,(value1, value2 )->value2));
|
|
||||||
attrInfoShowExport(getList,dicMap);
|
|
||||||
return getList;
|
return getList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user