| | |
| | | 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; |
| | |
| | | //检查业务类型 |
| | | 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); |
| | |
| | | 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); |