From 0e5bddf6084d3dfb7bcad7217d4320898416eba3 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 23 十月 2025 16:49:12 +0800
Subject: [PATCH] 拆分原材料和外购成品的业务流程(报检、下单、检验)
---
cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordCancelController.java | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordCancelController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordCancelController.java
index d970e87..56224d7 100644
--- a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordCancelController.java
+++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordCancelController.java
@@ -12,10 +12,7 @@
import com.deepoove.poi.data.style.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@@ -28,7 +25,7 @@
* 浣滃簾鏂囦欢閿�榄傝褰� 鍓嶇鎺у埗鍣�
* </p>
*
- * @author 鑺杞欢锛堟睙鑻忥級鏈夐檺鍏徃
+ * @author
* @since 2024-11-13 01:27:22
*/
@Api(tags = "璁板綍鐨勬帶鍒�")
@@ -40,7 +37,7 @@
private ManageRecordCancelService manageRecordCancelService;
@ApiOperation(value = "鍒嗛〉鏌ヨ浣滃簾鏂囦欢閿�姣佽褰�")
- @PostMapping("/pageManageRecordCancel")
+ @GetMapping("/pageManageRecordCancel")
public Result pageManageRecordCancel(Page page,ManageRecordCancel manageRecordCancel) throws Exception {
return Result.success(manageRecordCancelService.pageManageRecordCancel(page, manageRecordCancel));
}
@@ -60,19 +57,21 @@
}
@ApiOperation(value = "鍒犻櫎浣滃簾鏂囦欢閿�姣佽褰�")
- @PostMapping("/delManageRecordCancel")
+ @DeleteMapping("/delManageRecordCancel")
public Result delManageRecordCancel(Integer id){
return Result.success(manageRecordCancelService.removeById(id));
}
@ApiOperation(value = "鎵瑰噯浣滃簾鏂囦欢閿�姣佽褰�")
@PostMapping("/ratifyManageRecordCancel")
- public Result ratifyManageRecordCancel(Integer id,String ratifyState){
+ public Result ratifyManageRecordCancel(@RequestBody Map<String, Object> param){
+ Integer id = (Integer) param.get("id");
+ String ratifyState = (String) param.get("ratifyState");
return Result.success(manageRecordCancelService.ratifyManageRecordCancel(id,ratifyState));
}
@ApiOperation(value = "瀵煎嚭浣滃簾鏂囦欢閿�姣佽褰�")
- @PostMapping("/exportOutManageRecordCancel")
+ @GetMapping("/exportOutManageRecordCancel")
public Result exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) throws Exception {
return Result.success(manageRecordCancelService.exportOutManageRecordCancel(manageRecordCancel,response));
}
@@ -80,9 +79,10 @@
@ApiOperation(value = "瀵煎叆浣滃簾鏂囦欢閿�姣佽褰�")
@PostMapping("/exportInManageRecordCancel")
public Result exportInManageRecordCancel(MultipartFile file){
- return Result.success(manageRecordCancelService.exportInManageRecordCancel(file));
+ try {
+ return Result.success(manageRecordCancelService.exportInManageRecordCancel(file));
+ }catch (Exception e){
+ return Result.fail(e.getMessage());
+ }
}
-
-
-
}
--
Gitblit v1.9.3