田源
2025-03-05 be30e17e3c7685a54f761bf3a03487308c939270
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
@@ -38,6 +38,7 @@
import com.vci.ubcs.code.vo.webserviceModel.attrmap.*;
import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultDataObjectDetailDO;
import com.vci.ubcs.code.webService.config.AttributeMapConfig;
import com.vci.ubcs.omd.cache.EnumCache;
import com.vci.ubcs.omd.feign.IBtmTypeClient;
import com.vci.ubcs.omd.vo.BtmTypeVO;
import com.vci.ubcs.starter.exception.VciBaseException;
@@ -543,9 +544,10 @@
      SectionVOList.stream().forEach(SectionVO -> {
         sectionVOMap.put(SectionVO.getName(), SectionVO.getValue());
      });
      //Map<String,CodeClassifyVO> codeClassifyVOMap= classifyFullInfo.getParentClassifyVOs().stream().collect(Collectors.toMap(s -> s.getId(), t -> t,(o1, o2)->o2));
      List<CodeOrderSecDTO> codeOrderSecDTOList = new ArrayList<>();
      Map<String, String> errorMap = new HashMap<>();
      String nullSymbol = EnumCache.getValue("nullSymbol", "NULL");
      nullSymbol = Func.isBlank(nullSymbol) ? "#NaN?":nullSymbol;
      for (CodeBasicSecVO codeBasicSecVO : codeBasicSecVOS) {
         String sectype = codeBasicSecVO.getSecType();
         String newSecName = codeBasicSecVO.getName();
@@ -568,7 +570,7 @@
                  if (!CollectionUtils.isEmpty(codeClassifyValueDOList)) {
                     Map<String, CodeClassifyValue> codeClassifyValueDOMap = codeClassifyValueDOList.stream().collect(Collectors.toMap(s -> s.getId(), t -> t, (o1, o2) -> o2));
                     if (codeClassifyValueDOMap.containsKey(sectypeValue)) {
                     if (codeClassifyValueDOMap.containsKey(sectypeValue) || nullSymbol.equals(sectypeValue)) {
                        CodeClassifyValue codeClassifyValue = codeClassifyValueDOMap.get(sectypeValue);
                        sectypeValue = codeClassifyValue.getOid();
                     } else {
@@ -578,7 +580,7 @@
                     }
                  }
               }
               if (StringUtils.isBlank(sectypeValue)) {
               if (StringUtils.isBlank(sectypeValue)&&!name.equals(secName)) {
                  message = "传入的分类码段:【" + name + " 】的值不允许为空";
                  errorMap.put("error", errorMap.getOrDefault("error", "") + ";" + message);
               }