|
@@ -81,14 +81,14 @@ public class KlRuleFacade extends KlRuleServiceImpl {
|
|
|
public Boolean saveRuleInfos(KlRuleInfoSaveVO klRuleInfoSaveVO) {
|
|
|
Date now = DateUtil.now();
|
|
|
boolean res = false;
|
|
|
- // 校验名称是否相同
|
|
|
+/* // 校验名称是否相同
|
|
|
int count = this.count(new QueryWrapper<KlRule>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("description", klRuleInfoSaveVO.getParDescription())
|
|
|
.ne("id", klRuleInfoSaveVO.getParId() == null ? -1 : klRuleInfoSaveVO.getParId()));
|
|
|
if (count > 0) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该规则名称已存在");
|
|
|
- }
|
|
|
+ }*/
|
|
|
//校验数据是否还在
|
|
|
if (null != klRuleInfoSaveVO.getParId()) {
|
|
|
int sum = this.count(new QueryWrapper<KlRule>().eq("is_deleted", IsDeleteEnum.N.getKey())
|