ludc
2023-06-09 75212b53168e4979db4fa2939109fe2f9a489524
Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/RevisionRuleServiceImpl.java
@@ -18,8 +18,8 @@
import com.vci.ubcs.omd.wrapper.BtmTypeWrapper;
import com.vci.ubcs.omd.wrapper.RevisionRuleWrapper;
import com.vci.ubcs.starter.exception.VciBaseException;
import com.vci.ubcs.starter.util.Map2MPJLambdaUtil;
import com.vci.ubcs.starter.util.MybatisParameterUtil;
import com.vci.ubcs.starter.util.UBCSCondition;
import com.vci.ubcs.starter.web.constant.RegExpConstant;
import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject;
import com.vci.ubcs.starter.web.pagemodel.PageHelper;
@@ -382,7 +382,7 @@
      //检查业务类型
      Collection<Collection<String>> oidCollections = VciBaseUtil.switchCollectionForOracleIn(oidCollection);
      for(Collection<String> oids : oidCollections) {
         MPJLambdaWrapper<BtmType> join = Map2MPJLambdaUtil.getMPJLambdaWrapper(new BtmType())
         MPJLambdaWrapper<BtmType> join = UBCSCondition.getMPJLambdaWrapper(new BtmType())
            .join("join", RevisionRule.class, RevisionRule::getId, BtmType::getRevisionRuleId)
            .in(RevisionRule::getOid, oids);
         Long count = btmTypeMapper.selectCount(join);
@@ -404,7 +404,7 @@
   public List<BtmTypeVO> listRevisionRuleUsedInfo(String pkRevisionRule) throws VciBaseException {
      VciBaseUtil.alertNotNull(pkRevisionRule,"版本规则对象的主键");
      List<BtmType> result = btmTypeMapper.selectList(
         Map2MPJLambdaUtil.getMPJLambdaWrapper(new BtmType())
         UBCSCondition.getMPJLambdaWrapper(new BtmType())
            .join("join", RevisionRule.class, RevisionRule::getId, BtmType::getRevisionRuleId)
            .eq(RevisionRule::getOid, pkRevisionRule));
      return BtmTypeWrapper.build().listEntityVO(result);
@@ -560,4 +560,16 @@
      beanMap.putAll(conditionMap);
      return RevisionRuleWrapper.build().pageVO(baseMapper.selectPage(Condition.getPage(query),Condition.getQueryWrapper(queryConditionObj).lambda().orderByAsc(RevisionRule::getId)));
   }
   /**
    * 查看应用范围
    *
    * @param id id
    * @return 执行结果
    */
   @Override
   public List<BtmTypeVO> getApplyRange(String id) {
      VciBaseUtil.alertNotNull(id,"版本规则英文名称");
      return BtmTypeWrapper.build().listEntityVO(btmTypeMapper.selectList(Wrappers.<BtmType>query().lambda().eq(BtmType::getRevisionRuleId,id)));
   }
}