Changes
parent
53443145ed
commit
668aaa5143
|
@ -60,12 +60,12 @@ public class RuleEditionServiceImpl extends ServiceImpl<RuleEditionMapper, RuleE
|
|||
Rule rule = ruleServiceImpl.getById(ruleEdition.getRuleId());
|
||||
ruleEdition.setRuleKind(rule.getName() + "_" + ruleEdition.getRuleCoding());
|
||||
ruleEdition.setRuleEngine(GenerateConstant.generateConstant(rule, ruleEdition));
|
||||
LambdaQueryWrapper<RuleEdition> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(RuleEdition::getRuleKind, ruleEdition.getRuleKind());
|
||||
long count = ruleEditionServiceImpl.count(queryWrapper);
|
||||
if (count > 0) {
|
||||
throw new ServiceException("版本类名称重复");
|
||||
}
|
||||
// LambdaQueryWrapper<RuleEdition> queryWrapper = new LambdaQueryWrapper<>();
|
||||
// queryWrapper.eq(RuleEdition::getRuleKind, ruleEdition.getRuleKind());
|
||||
// long count = ruleEditionServiceImpl.count(queryWrapper);
|
||||
// if (count > 0) {
|
||||
// throw new ServiceException("版本类名称重复");
|
||||
// }
|
||||
return ruleEdition;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue