From d809ecd16cbb23f5aad86a6844f51ffea0455fe8 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 06 九月 2024 16:53:55 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/controller/pp/WorkOrderController.java | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/WorkOrderController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/WorkOrderController.java
index e67f4d4..fdd7b49 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/WorkOrderController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/WorkOrderController.java
@@ -51,12 +51,14 @@
@PostMapping("/addOrderWork")
public Result addOrderWork( @RequestBody Map<String,Object> object){
- if(workOrderService.addOrderWorkSv(object)){
- return Result.seccess();
- }else {
- throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
+// if(workOrderService.addOrderWorkSv(object)){
+// return Result.seccess();
+// }else {
+// throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触");
+//
+// }
- }
+ return Result.seccess(workOrderService.addOrderWorkSv(object));
}
//鍒犻櫎宸ュ崟
@@ -67,11 +69,12 @@
@PathVariable String orderId,
@PathVariable String productionId
){
- if(workOrderService.deleteOrderWorkSv(orderId,productionId)){
- return Result.seccess();
- }else {
- throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触");
-
- }
+// if(workOrderService.deleteOrderWorkSv(orderId,productionId)){
+// return Result.seccess();
+// }else {
+// throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触");
+//
+// }
+ return Result.seccess(workOrderService.deleteOrderWorkSv(orderId,productionId));
}
}
--
Gitblit v1.8.0