bug: 78394国内外政策详情中类别回显为空

This commit is contained in:
wxyclub
2023-11-27 11:58:59 +08:00
parent 9fae0ab0f4
commit 9983d0595f
@@ -242,6 +242,28 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
newStandList.add(sarLawsStandInfoList.get(0));
attrInfoShowDetails(newStandList);
sarLawsStandInfo = newStandList.get(0);
String levelName = "";
List<String> list = new ArrayList<>();
if (StringUtils.isNotBlank(sarLawsStandInfo.getLawsTypeFirstLevel())) {
list = Arrays.asList(sarLawsStandInfo.getLawsTypeFirstLevel().split(","));
levelName = dicTypeEODao.getDicNamesByCodes(list, "xf1g55oztafkxisxie1i");
sarLawsStandInfo.setLawTypeFirstLevelName(levelName);
}
if (StringUtils.isNotBlank(sarLawsStandInfo.getLawsTypeSecondLevel())) {
list = Arrays.asList(sarLawsStandInfo.getLawsTypeSecondLevel().split(","));
levelName = dicTypeEODao.getDicNamesByCodes(list, "r09bcearrmv0qoqoc8w4");
sarLawsStandInfo.setLawTypeSecondLevelName(levelName);
}
if (StringUtils.isNotBlank(sarLawsStandInfo.getLawsTypeThirdLevel())) {
list = Arrays.asList(sarLawsStandInfo.getLawsTypeThirdLevel().split(","));
levelName = dicTypeEODao.getDicNamesByCodes(list, "h05q1gegpth2jbp9k447");
sarLawsStandInfo.setLawTypeThirdLevelName(levelName);
}
if (StringUtils.isNotBlank(sarLawsStandInfo.getLawsTypeFourthLevel())) {
list = Arrays.asList(sarLawsStandInfo.getLawsTypeFourthLevel().split(","));
levelName = dicTypeEODao.getDicNamesByCodes(list, "5pl1o1zufypbyiqapssf");
sarLawsStandInfo.setLawTypeFourthLevelName(levelName);
}
}
return sarLawsStandInfo;
}