From a8a2ea850139b9cccb756989fc70201f6a2a0550 Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期四, 15 五月 2025 14:39:43 +0800
Subject: [PATCH] 修改计划管理接口ajax返回值

---
 aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlanManagementController.java |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPlanManagementController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlanManagementController.java
similarity index 85%
rename from aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPlanManagementController.java
rename to aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlanManagementController.java
index f8ec4e4..9f9439e 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPlanManagementController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlanManagementController.java
@@ -1,4 +1,4 @@
-package com.aps.core.controller;
+package com.aps.core.controller.mainPlan;
 
 import com.aps.common.core.utils.poi.ExcelUtil;
 import com.aps.common.core.web.controller.BaseController;
@@ -50,7 +50,7 @@
      */
     @Operation(summary = "瀵煎嚭璁″垝绠$悊鍒楄〃", description = "瀵煎嚭")
 //    @RequiresPermissions("aps:management:export")
-    @Log(title = "璁″垝绠$悊", businessType = BusinessType.EXPORT)
+    @Log(title = "瀵煎嚭璁″垝绠$悊鍒楄〃", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, ApsPlanManagement apsPlanManagement)
     {
@@ -75,11 +75,12 @@
      */
     @Operation(summary = "鏂板璁″垝绠$悊", description = "鍗曚釜鏂板")
 //    @RequiresPermissions("aps:management:add")
-    @Log(title = "璁″垝绠$悊", businessType = BusinessType.INSERT)
+    @Log(title = "鏂板璁″垝绠$悊", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody ApsPlanManagement apsPlanManagement)
     {
-        return toAjax(apsPlanManagementService.insertApsPlanManagement(apsPlanManagement));
+        apsPlanManagementService.insertApsPlanManagement(apsPlanManagement);
+        return toAjax(true);
     }
 
     /**
@@ -100,11 +101,12 @@
      */
     @Operation(summary = "淇敼璁″垝绠$悊", description = "鍗曚釜淇敼")
 //    @RequiresPermissions("aps:management:edit")
-    @Log(title = "璁″垝绠$悊", businessType = BusinessType.UPDATE)
+    @Log(title = "淇敼璁″垝绠$悊", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody ApsPlanManagement apsPlanManagement)
     {
-        return toAjax(apsPlanManagementService.updateApsPlanManagement(apsPlanManagement));
+        apsPlanManagementService.updateApsPlanManagement(apsPlanManagement);
+        return toAjax(true);
     }
 
     /**
@@ -112,10 +114,11 @@
      */
     @Operation(summary = "鍒犻櫎璁″垝绠$悊", description = "鎵归噺鍒犻櫎")
 //    @RequiresPermissions("aps:management:remove")
-    @Log(title = "璁″垝绠$悊", businessType = BusinessType.DELETE)
+    @Log(title = "鍒犻櫎璁″垝绠$悊", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
-        return toAjax(apsPlanManagementService.deleteApsPlanManagementByIds(ids));
+        apsPlanManagementService.deleteApsPlanManagementByIds(ids);
+        return toAjax(true);
     }
 }

--
Gitblit v1.9.3