xiejun
2023-07-17 1f0a10ab714699acc85430b90bcb5a1eeaad1eec
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeClassifyTemplateAttrServiceImpl.java
@@ -714,7 +714,7 @@
      //这个业务类型下的所有属性
      R<BtmTypeVO> btmTypeVOR = btmTypeClient.getAllAttributeByBtmId(codeClassifyTemplateDO.getBtmTypeId());
      if(btmTypeVOR.getCode() != 200){
         throw new ServiceException("业务类型feign调用失败!");
         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("*",""))){