From d2b1177580be66dcb3069c8ea268146ccb0cea19 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 15 十二月 2022 14:52:19 +0800 Subject: [PATCH] !263 优化:代码规范 Merge pull request !263 from hzf/dev --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java index faf68ce..e80f0ee 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java @@ -10,7 +10,6 @@ import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.system.service.ISysMenuService; -import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -118,10 +117,10 @@ @DeleteMapping("/{menuId}") public R<Void> remove(@PathVariable("menuId") Long menuId) { if (menuService.hasChildByMenuId(menuId)) { - return R.fail("瀛樺湪瀛愯彍鍗�,涓嶅厑璁稿垹闄�"); + return R.warn("瀛樺湪瀛愯彍鍗�,涓嶅厑璁稿垹闄�"); } if (menuService.checkMenuExistRole(menuId)) { - return R.fail("鑿滃崟宸插垎閰�,涓嶅厑璁稿垹闄�"); + return R.warn("鑿滃崟宸插垎閰�,涓嶅厑璁稿垹闄�"); } return toAjax(menuService.deleteMenuById(menuId)); } -- Gitblit v1.9.3