fix: 不回显涉及系统部件
This commit is contained in:
+21
-20
@@ -489,7 +489,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
resultMap.put(key + FieldCommon._DICT_TEXT, StringUtils.join(fileList.stream()
|
resultMap.put(key + FieldCommon._DICT_TEXT, StringUtils.join(fileList.stream()
|
||||||
.map(OSSFile::getFileName).collect(Collectors.toList()), ","));
|
.map(OSSFile::getFileName).collect(Collectors.toList()), ","));
|
||||||
}
|
}
|
||||||
} else if (FieldCommon.PART_NAME.equals(key) && StringUtils.isNotBlank(value)) {
|
} else if (FieldCommon.PART_NAME.equals(key)) {
|
||||||
// 如果是零部件
|
// 如果是零部件
|
||||||
List<String> partNameIdList = partNameStandardService.getByStandardId(id);
|
List<String> partNameIdList = partNameStandardService.getByStandardId(id);
|
||||||
if (CollectionUtils.isEmpty(partNameIdList)) {
|
if (CollectionUtils.isEmpty(partNameIdList)) {
|
||||||
@@ -776,6 +776,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
if (CollUtil.isNotEmpty(partNameStandardList)) {
|
if (CollUtil.isNotEmpty(partNameStandardList)) {
|
||||||
partNameStandardService.saveBatch(partNameStandardList);
|
partNameStandardService.saveBatch(partNameStandardList);
|
||||||
}
|
}
|
||||||
|
parameterMap.remove(FieldCommon.PART_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1278,7 +1279,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
try {
|
try {
|
||||||
initMap = lawsCommonMapper.getByIdAndModule(tableName, selectField, id, standardNumber);
|
initMap = lawsCommonMapper.getByIdAndModule(tableName, selectField, id, standardNumber);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
log.error(e.getMessage());
|
||||||
throw new JeroBootException("非法参数异常");
|
throw new JeroBootException("非法参数异常");
|
||||||
}
|
}
|
||||||
if (initMap == null) {
|
if (initMap == null) {
|
||||||
@@ -1288,24 +1289,24 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
Map<String, Object> stringObjectMap = processResultMap(initMap, fieldList);
|
Map<String, Object> stringObjectMap = processResultMap(initMap, fieldList);
|
||||||
|
|
||||||
if (module.equals(TableNameEnum.ENTERPRISE_STANDARDS.getValue())) {
|
if (module.equals(TableNameEnum.ENTERPRISE_STANDARDS.getValue())) {
|
||||||
// // 企标独有的稽查内容列表
|
// 企标独有的稽查内容列表
|
||||||
// LambdaQueryWrapper<EnterpriseStandardInspectContent> esIcWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<EnterpriseStandardInspectContent> esIcWrapper = new LambdaQueryWrapper<>();
|
||||||
// esIcWrapper.eq(EnterpriseStandardInspectContent::getStandardId, id);
|
esIcWrapper.eq(EnterpriseStandardInspectContent::getStandardId, id);
|
||||||
// List<EnterpriseStandardInspectContent> list = esInspectContentService.list(esIcWrapper);
|
List<EnterpriseStandardInspectContent> list = esInspectContentService.list(esIcWrapper);
|
||||||
// List<String> departIdList = list.stream().map(EnterpriseStandardInspectContent::getRectificationDepartment)
|
List<String> departIdList = list.stream().map(EnterpriseStandardInspectContent::getRectificationDepartment)
|
||||||
// .collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
// if (departIdList.size() != 0) {
|
if (!departIdList.isEmpty()) {
|
||||||
// LambdaQueryWrapper<SysDepart> sysDepartLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysDepart> sysDepartLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
// sysDepartLambdaQueryWrapper.in(SysDepart::getId, departIdList);
|
sysDepartLambdaQueryWrapper.in(SysDepart::getId, departIdList);
|
||||||
// List<SysDepart> departList = sysDepartService.list(sysDepartLambdaQueryWrapper);
|
List<SysDepart> departList = sysDepartService.list(sysDepartLambdaQueryWrapper);
|
||||||
// Map<String, List<SysDepart>> departMap = departList.stream().collect(Collectors.groupingBy(SysDepart::getId));
|
Map<String, List<SysDepart>> departMap = departList.stream().collect(Collectors.groupingBy(SysDepart::getId));
|
||||||
// for (EnterpriseStandardInspectContent content : list) {
|
for (EnterpriseStandardInspectContent content : list) {
|
||||||
// if (content.getRectificationDepartment() != null) {
|
if (content.getRectificationDepartment() != null) {
|
||||||
// content.setRectificationDepartment_dictText(departMap.get(content.getRectificationDepartment()).get(0).getDepartName());
|
content.setRectificationDepartment_dictText(departMap.get(content.getRectificationDepartment()).get(0).getDepartName());
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// stringObjectMap.put("checkList", list);
|
stringObjectMap.put("checkList", list);
|
||||||
// // 设置企标独有的标准适用范围
|
// // 设置企标独有的标准适用范围
|
||||||
// // 查询标准拆分表
|
// // 查询标准拆分表
|
||||||
// LambdaQueryWrapper<SarFileSplitInfoEO> queryWrapper = new LambdaQueryWrapper<>();
|
// LambdaQueryWrapper<SarFileSplitInfoEO> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user