Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeRuleServiceImpl.java
@@ -134,6 +134,7 @@
    */
   @Override
   public IPage<CodeRuleVO> gridCodeRule(Query query, Map<String,Object> conidtionMap) throws VciBaseException {
      //int i = 1 / 0;
      //如果等于自己配置的管理组租户id和管理组超管账号,就不需要按照规则所有者来进行查询
      /*if(!(AuthUtil.getTenantId().equals(NacosConfigCache.getAdminUserInfo().getTenantId())
         && AuthUtil.getUserId().toString().equals(NacosConfigCache.getAdminUserInfo().getUserId().toString()))
@@ -387,7 +388,7 @@
   public Collection<CodeRuleVO> listCodeRuleByOids(Collection<String> oidCollections) throws VciBaseException {
      VciBaseUtil.alertNotNull(oidCollections, "数据对象主键集合");
      List<CodeRule> codeRuleDOList = listCodeRuleDOByOidCollections(oidCollections);
      return CodeRuleWrapper.build().listVO(codeRuleDOList);
      return codeRuleDO2VOs(codeRuleDOList,true);
   }
   /**
@@ -401,8 +402,8 @@
   @Override
   public Collection<CodeRuleVO> listCodeRuleByIds(Collection<String> oidCollections, boolean hasSec) throws VciBaseException {
      VciBaseUtil.alertNotNull(oidCollections, "数据对象主键集合");
      List<CodeRule> codeRuleDOList = listCodeRuleDOByOidCollections(oidCollections);
      return codeRuleDO2VOs(codeRuleDOList, true);
      List<CodeRule> codeRuleDOList = listCodeRuleDOByIdCollections(oidCollections);
      return codeRuleDO2VOs(codeRuleDOList, hasSec);
   }
   /**
@@ -426,6 +427,29 @@
   }
   /**
    * 使用规则id集合查询数据对象
    *
    * @param idCollections id的集合
    * @return 数据对象列表
    */
   private List<CodeRule> listCodeRuleDOByIdCollections(Collection<String> idCollections) throws VciBaseException {
      List<CodeRule> codeRuleDOList = new ArrayList<CodeRule>();
      if (!CollectionUtils.isEmpty(idCollections)) {
         Collection<Collection<String>> idCollectionsList = VciBaseUtil.switchCollectionForOracleIn(idCollections);
         for (Collection<String> ids : idCollectionsList) {
            List<CodeRule> tempDOList = codeRuleMapper.selectList(
               Wrappers.<CodeRule>query()
                  .lambda().in(CodeRule::getId,ids)
            );
            if (!CollectionUtils.isEmpty(tempDOList)) {
               codeRuleDOList.addAll(tempDOList);
            }
         }
      }
      return codeRuleDOList;
   }
   /**
    * 参照主数据编码规则列表
    *
    * @param bladeQueryObject 查询条件