| | |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.alibaba.cloud.commons.lang.StringUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.sql.Wrapper; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | |
| | | return ""; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 替换前缀和后缀 |
| | | * @param ruleValue 当前版本的值 |
| | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param baseQueryObject 查询对象 |
| | | * @param condition 查询对象 |
| | | * @param query 分页对象 |
| | | * @return 查询结果 |
| | | * @throws VciBaseException 查询出错时抛出异常 |
| | | */ |
| | |
| | | VciBaseUtil.alertNotNull(id,"版本规则英文名称"); |
| | | return BtmTypeWrapper.build().listEntityVO(btmTypeMapper.selectList(Wrappers.<BtmType>query().lambda().eq(BtmType::getRevisionRuleId,id))); |
| | | } |
| | | |
| | | /** |
| | | * 根据id获取版本规则 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public RevisionRuleVO getReversionRuleById(String id) { |
| | | LambdaQueryWrapper<RevisionRule> wrapper = Wrappers.<RevisionRule>query() |
| | | .lambda().eq(RevisionRule::getId, id) |
| | | .last("limit 1"); |
| | | RevisionRule revisionRule = baseMapper.selectOne(wrapper); |
| | | return RevisionRuleWrapper.build().entityVO(revisionRule); |
| | | } |
| | | |
| | | } |