From ef5a518c3e2c1fe41aa60f56ca31ddafa0cb1561 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期四, 23 五月 2024 08:32:36 +0800 Subject: [PATCH] 添加产品汇总报表 --- 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