yuxc
2023-07-28 dec9d854de8cb6a4e0055ce3df24f3a45ec27c1c
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeClassifyTemplateAttrServiceImpl.java
@@ -713,8 +713,8 @@
      }
      //这个业务类型下的所有属性
      R<BtmTypeVO> btmTypeVOR = btmTypeClient.getAllAttributeByBtmId(codeClassifyTemplateDO.getBtmTypeId());
      if(btmTypeVOR.getCode() != 200){
         throw new ServiceException("业务类型feign调用失败!");
      if(!btmTypeVOR.isSuccess()){
         throw new ServiceException("业务类型feign调用错误!");
      }
      //这个模板下已经有的属性
@@ -724,16 +724,16 @@
      condition.put("CLASSIFYTEMPLATEOID",templateAttrOid);
      List<CodeClassifyTemplateAttr> codeClassifyTemplateAttrDOList = baseMapper.selectByMap(condition);
      List<String> btmOids = new ArrayList<String>();
      List<String> btmIds = new ArrayList<String>();
      for (CodeClassifyTemplateAttr codeClassifyTemplateAttrDO:codeClassifyTemplateAttrDOList){
         btmOids.add(codeClassifyTemplateAttrDO.getId());
         btmIds.add(codeClassifyTemplateAttrDO.getId());
      }
      //过滤掉已经存在的属性
      List<BtmTypeAttributeVO> boAttrss = new ArrayList<BtmTypeAttributeVO>();
      for (BtmTypeAttributeVO osBtmTypeAttributeVO:btmTypeVOR.getData().getAttributes()){
         if(!btmOids.contains(osBtmTypeAttributeVO.getId())){
         if(!btmIds.contains(osBtmTypeAttributeVO.getId())){
            //看看是不是有模糊查询
            boolean inSearch = true;
            if(StringUtils.isNotBlank(name) && !osBtmTypeAttributeVO.getName().contains(name.replace("*",""))){