|
|
|
@ -104,7 +104,7 @@ public class StackRulesController {
|
|
|
|
|
}
|
|
|
|
|
Long count = stackRulesService.countEnableRules(deleteRequest.getCustomerId());
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "至少保留一条规则");
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "至少保留一条启用规则");
|
|
|
|
|
}
|
|
|
|
|
stackRulesService.delete(deleteRequest.getId());
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|