From 2da0d6b9c049c9960b39ba0136cc564016e7c7f7 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Thu, 14 Nov 2024 10:17:18 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/sgzb/base/controller/MaTypeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java index d583f6e..7e69f49 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java @@ -257,7 +257,7 @@ public class MaTypeController extends BaseController { public AjaxResult add(@RequestBody MaType maType) { int result = iTypeService.insertMaType(maType); if (result > 0) { - return success(toAjax(iTypeService.insertMaType(maType))); + return success("新增成功"); } else { return AjaxResult.error("未新增成功,请查看同一层级是否有重名的类型!"); }