From b0cd4806c47e8845a1428a52bcc9c0b422e794ad Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Thu, 30 Dec 2021 21:55:15 +0800 Subject: [PATCH] commit --- .../service/impl/SarStandardsInfoServiceImpl.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/service/impl/SarStandardsInfoServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/service/impl/SarStandardsInfoServiceImpl.java index 5a211419..16353926 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/service/impl/SarStandardsInfoServiceImpl.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/service/impl/SarStandardsInfoServiceImpl.java @@ -714,9 +714,13 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl sarlist,Map dicMap) throws Exception { - + public void attrInfoShowExport(List sarlist) throws Exception { + //查询字典表,形成Hash映射提升速度 + List dicInfo = dicTypeEODao.getDicInfo("dic_type_code", "dic_type_name"); + Map dicMap = dicInfo.stream() + .filter(item-> !item.getDicTypeCode().isEmpty()) + .collect(Collectors.toMap(DicTypeEO::getDicTypeCode,DicTypeEO::getDicTypeName,(value1, value2 )->value2)); for (SarStandardsInfo row : sarlist) { @@ -1705,12 +1709,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl getList = dao.getSarStandardsExportInfo(page); - //查询字典表,形成Hash映射提升速度 - List dicInfo = dicTypeEODao.getDicInfo("dic_type_code", "dic_type_name"); - Map dicMap = dicInfo.stream() - .filter(item-> !item.getDicTypeCode().isEmpty()) - .collect(Collectors.toMap(DicTypeEO::getDicTypeCode,DicTypeEO::getDicTypeName,(value1, value2 )->value2)); - attrInfoShowExport(getList,dicMap); + attrInfoShowExport(getList); return getList; }