fix: 88187 外来标准法规文本库--代替标准的被代替标准编号显示了标准本身

This commit is contained in:
2024-08-08 14:07:23 +08:00
parent f83799020c
commit 65b87c8711
2 changed files with 2 additions and 1 deletions
@@ -1348,7 +1348,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
Map<String, Object> stringObjectMap = processResultMap(initMap, fieldList);
if (module.equals(TableNameEnum.ENTERPRISE_STANDARDS.getValue())) {
// 企标独有的稽查内容列表
// 企标独有的监察内容列表
LambdaQueryWrapper<EnterpriseStandardInspectContent> esIcWrapper = new LambdaQueryWrapper<>();
esIcWrapper.eq(EnterpriseStandardInspectContent::getStandardId, id);
List<EnterpriseStandardInspectContent> list = esInspectContentService.list(esIcWrapper);
@@ -131,6 +131,7 @@ public class LawsReplacedStandardServiceImpl extends ServiceImpl<LawsReplacedSta
return "";
}
List<String> replacedByList = replacedStandardList.stream()
.filter(e -> e.getReplaced().equals(e.getReplaced().split("")[0]))
.map(LawsReplacedStandard::getReplacedBy).collect(Collectors.toList());
return StringUtils.join(replacedByList, ",");
}