法规清单--编辑报错修改
This commit is contained in:
+14
-5
@@ -2369,8 +2369,13 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
//认证级别
|
//认证级别
|
||||||
if (StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())) {
|
if (StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())) {
|
||||||
List<SysDictItem> attestationRank = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.ATTESTATION_RANK.getValue());
|
List<SysDictItem> attestationRank = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.ATTESTATION_RANK.getValue());
|
||||||
String attestationRankName = attestationRank.stream().filter(e -> e.getItemValue().equals(projectLawsInventoryEO.getAttestationRank())).map(f -> f.getItemText()).collect(Collectors.joining(","));
|
List<String> attestationRankList = Arrays.asList(projectLawsInventoryEO.getAttestationRank().split(","));
|
||||||
projectLawsInventoryEO.setAttestationRank(attestationRankName);
|
StringBuilder attestationRankBuilder = new StringBuilder();
|
||||||
|
for (String midAttestationRank : attestationRankList) {
|
||||||
|
String dutyTerritoryName = attestationRank.stream().filter(e -> e.getItemValue().equals(midAttestationRank)).map(f -> f.getItemText()).collect(Collectors.joining(","));
|
||||||
|
attestationRankBuilder.append(dutyTerritoryName).append(",");
|
||||||
|
}
|
||||||
|
projectLawsInventoryEO.setAttestationRank(attestationRankBuilder.substring(0, attestationRankBuilder.toString().length() - 1));
|
||||||
} else {
|
} else {
|
||||||
projectLawsInventoryEO.setAttestationRank("空");
|
projectLawsInventoryEO.setAttestationRank("空");
|
||||||
}
|
}
|
||||||
@@ -2731,13 +2736,17 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
//认证级别
|
//认证级别
|
||||||
if (StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())) {
|
if (StringUtils.isNotBlank(projectLawsInventoryEO.getAttestationRank())) {
|
||||||
List<SysDictItem> attestationRank = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.ATTESTATION_RANK.getValue());
|
List<SysDictItem> attestationRank = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.ATTESTATION_RANK.getValue());
|
||||||
String attestationRankName = attestationRank.stream().filter(e -> e.getItemValue().equals(projectLawsInventoryEO.getAttestationRank())).map(f -> f.getItemText()).collect(Collectors.joining(","));
|
List<String> attestationRankList = Arrays.asList(projectLawsInventoryEO.getAttestationRank().split(","));
|
||||||
projectLawsInventoryEO.setAttestationRank(attestationRankName);
|
StringBuilder attestationRankBuilder = new StringBuilder();
|
||||||
|
for (String midAttestationRank : attestationRankList) {
|
||||||
|
String dutyTerritoryName = attestationRank.stream().filter(e -> e.getItemValue().equals(midAttestationRank)).map(f -> f.getItemText()).collect(Collectors.joining(","));
|
||||||
|
attestationRankBuilder.append(dutyTerritoryName).append(",");
|
||||||
|
}
|
||||||
|
projectLawsInventoryEO.setAttestationRank(attestationRankBuilder.substring(0, attestationRankBuilder.toString().length() - 1));
|
||||||
} else {
|
} else {
|
||||||
projectLawsInventoryEO.setAttestationRank("null");
|
projectLawsInventoryEO.setAttestationRank("null");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//责任领域
|
//责任领域
|
||||||
if (StringUtils.isNotBlank(projectLawsInventoryEO.getDutyTerritory())) {
|
if (StringUtils.isNotBlank(projectLawsInventoryEO.getDutyTerritory())) {
|
||||||
List<SysDictItem> dutyTerritory = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.DUTY_TERRITORY.getValue());
|
List<SysDictItem> dutyTerritory = sysDictItemMapper.selectItemsByDictCode(ProjectInventoryFieldEnum.DUTY_TERRITORY.getValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user