From 18fb477ea840e3dd4b19ff63f68f994d31fab43b Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期二, 21 五月 2024 13:07:04 +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/mm/FinishedGoodsInventoryController.java | 78 +++++---------------------------------- 1 files changed, 10 insertions(+), 68 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java b/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java index 0b1f5ef..8230737 100644 --- a/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java +++ b/north-glass-erp/src/main/java/com/example/erp/controller/mm/FinishedGoodsInventoryController.java @@ -48,12 +48,8 @@ @SaCheckPermission("CreateProductStock.add") @PostMapping("/addSelectWarehousing") public Result addSelectWarehousing( @RequestBody Map<String,Object> object){ - if(finishedGoodsInventoryService.addSelectWarehousing(object)){ - return Result.seccess(); - }else { - throw new ServiceException(Constants.Code_500,"鍏ュ簱澶辫触"); + return Result.seccess(finishedGoodsInventoryService.addSelectWarehousing(object)); - } } /*鏌ヨ鍙彂璐х殑鎴愬搧鏁版嵁*/ @@ -69,12 +65,7 @@ @SaCheckPermission("FinishedProductOut.add") @PostMapping("/addDeliveryDetail") public Result addDeliveryDetail( @RequestBody Map<String,Object> object){ - if(finishedGoodsInventoryService.addDeliveryDetail(object)){ - return Result.seccess(); - }else { - throw new ServiceException(Constants.Code_500,"鍑哄簱澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.addDeliveryDetail(object)); } /* 璋冩嫧鏌ヨ*/ @@ -90,14 +81,7 @@ @SaCheckPermission("OrderAllocation.add") @PostMapping("/updateFinishedGoodsInventoryAllocate") public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ - if(finishedGoodsInventoryService.updateFinishedGoodsInventoryAllocate(object)){ - - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"璋冩嫧澶辫触,璇锋鏌ヨ鍗曡緭鍏ユ槸鍚︽纭�"); - - } + return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryAllocate(object)); } /*璋冩嫧璁板綍鏌ヨ*/ @@ -113,14 +97,7 @@ @SaCheckPermission("FinishedGoodsIssue.add") @PostMapping("/updateFinishedGoodsInventoryTakeOut") public Result updateFinishedGoodsInventoryTakeOut( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.updateFinishedGoodsInventoryTakeOut(object)){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"棰嗗嚭澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryTakeOut(object)); } /*棰嗗嚭璁板綍鏌ヨ*/ @@ -135,14 +112,7 @@ @ApiOperation("璁㈠崟杩斿伐鏌ヨ鎺ュ彛") @PostMapping("/updateFinishedGoodsInventoryRework") public Result updateFinishedGoodsInventoryRework( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.updateFinishedGoodsInventoryRework(object)){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"杩斿伐澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryRework(object)); } @@ -152,28 +122,14 @@ @SaCheckPermission("TakeOutRecord.review") @PostMapping("/updateFinishedGoodsInventoryToExamine") public Result updateFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"瀹℃牳")){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"棰嗗嚭澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"瀹℃牳")); } /*璁㈠崟鍙嶅*/ @ApiOperation("璁㈠崟鍙嶅鎺ュ彛") @SaCheckPermission("TakeOutRecord.review") @PostMapping("/updateFinishedGoodsInventoryCounterExamination") public Result updateFinishedGoodsInventoryCounterExamination( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"鍙嶅")){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"棰嗗嚭澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"鍙嶅")); } /*璁㈠崟浣滃簾*/ @@ -181,14 +137,7 @@ @SaCheckPermission("TakeOutRecord.update") @PostMapping("/cancelFinishedGoodsInventoryToExamine") public Result cancelFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.cancelFinishedGoodsInventoryToExamine(object)){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"棰嗗嚭澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.cancelFinishedGoodsInventoryToExamine(object)); } /*鍑哄叆搴撹褰曟煡璇�*/ @@ -202,16 +151,9 @@ /*鍑哄叆搴撹繑鍥�*/ @ApiOperation("鍑哄叆搴撹繑鍥炴帴鍙�") @SaCheckPermission("storageRecord.update") - @PostMapping("/cancelFinishedGoodsInventoryStorage") + @PostMapping("/cancelFini shedGoodsInventoryStorage") public Result cancelFinishedGoodsInventoryStorage( @RequestBody Map<String,Object> object){ - - if(finishedGoodsInventoryService.cancelFinishedGoodsInventoryStorage(object)){ - return Result.seccess(); - - }else { - throw new ServiceException(Constants.Code_500,"杩斿洖澶辫触"); - - } + return Result.seccess(finishedGoodsInventoryService.cancelFinishedGoodsInventoryStorage(object)); } @ApiOperation("鎴愬搧搴撳瓨璁板綍鏌ヨ鎺ュ彛") -- Gitblit v1.8.0