From 5f865f37c01a284d71280565a9e4fd08493b212e Mon Sep 17 00:00:00 2001 From: 廖井涛 <2265517004@qq.com> Date: 星期三, 06 三月 2024 10:09:21 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override --- north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java index 1e9a012..97f42d3 100644 --- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java +++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java @@ -39,7 +39,7 @@ } - //鐐瑰嚮鏌ヨ鎺掔増鏁版嵁 + //鐐瑰嚮鏌ヨ鎺掔増鏁版嵁锛堝甫璁㈠崟鍙锋煡璇級 @PostMapping ("/selectSchedulingNot/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}") public Result SelectSchedulingNot( @PathVariable String selectTime1, @@ -52,4 +52,28 @@ } + //娣诲姞鎺掍骇鏁版嵁 + @PostMapping("/addScheduling") + public Result AddScheduling( @RequestBody Map<String,Object> object){ + + if(productionSchedulingService.AddSchedulingSv(object)){ + return Result.seccess(); + }else { + throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触"); + + } + } + + //娣诲姞鎺掍骇鏁版嵁 + @PostMapping("/deleteScheduling") + public Result DeleteScheduling( @RequestBody Map<String,Object> object){ + + if(productionSchedulingService.AddSchedulingSv(object)){ + return Result.seccess(); + }else { + throw new ServiceException(Constants.Code_500,"淇濆瓨澶辫触"); + + } + } + } -- Gitblit v1.8.0