| | |
| | | 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; |
| | |
| | | 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(); |
| | |
| | | |
| | | 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 { |
| | |
| | | } |
| | | } |
| | | } |
| | | if (StringUtils.isBlank(sectypeValue)) { |
| | | if (StringUtils.isBlank(sectypeValue)&&!name.equals(secName)) { |
| | | message = "传入的分类码段:【" + name + " 】的值不允许为空"; |
| | | errorMap.put("error", errorMap.getOrDefault("error", "") + ";" + message); |
| | | } |