From b90435111a9cb88a9302b6ac1f70c6d475452efe Mon Sep 17 00:00:00 2001 From: 廖井涛 <2265517004@qq.com> Date: 星期一, 11 三月 2024 11:28:53 +0800 Subject: [PATCH] 修改发货库存修改 --- north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java | 41 ++++++++++++++++++++++++++++++++++++++--- 1 files changed, 38 insertions(+), 3 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..787be26 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,17 +39,52 @@ } - //鐐瑰嚮鏌ヨ鎺掔増鏁版嵁 + //鐐瑰嚮鏌ヨ鎺掔増鏁版嵁锛堝甫璁㈠崟鍙锋煡璇級 @PostMapping ("/selectSchedulingNot/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}") - public Result SelectSchedulingNot( + public Result selectSchedulingNot( @PathVariable String selectTime1, @PathVariable String selectTime2, @PathVariable String orderId, @PathVariable String processes, @PathVariable Integer state, @RequestBody ProductionScheduling productionScheduling){ - return Result.seccess(productionSchedulingService.SelectSchedulingNotSv(selectTime1,selectTime2,orderId,processes,state,productionScheduling)); + return Result.seccess(productionSchedulingService.selectSchedulingNotSv(selectTime1,selectTime2,orderId,processes,state,productionScheduling)); } + //娣诲姞鎺掍骇鏁版嵁 + @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) throws Exception{ + + if(productionSchedulingService.deleteSchedulingSv(object)){ + return Result.seccess(); + }else { + throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触"); + + } + } + + @PostMapping("/examineScheduling") + public Result ExamineScheduling( @RequestBody Map<String,Object> object){ + + if(productionSchedulingService.ExamineSchedulingSv(object)){ + return Result.seccess(); + }else { + throw new ServiceException(Constants.Code_500,"瀹℃牳澶辫触"); + + } + } + } -- Gitblit v1.8.0