From d34aa4f61a58b1833eaeda5e3abbb553578c6bcc Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期二, 18 三月 2025 09:19:27 +0800 Subject: [PATCH] 车间管理模块,产品车间绑定 --- basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java | 28 +++++++++++++++++----------- 1 files changed, 17 insertions(+), 11 deletions(-) diff --git a/basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java b/basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java index 810c430..f46439b 100644 --- a/basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java +++ b/basic-server/src/main/java/com/ruoyi/basic/controller/CapacityScopeController.java @@ -60,8 +60,8 @@ private StandardTemplateService standardTemplateService; @ApiOperation(value = "鑾峰彇椤圭洰妫�楠屽弬鏁板垪琛�") - @PostMapping("/selectItemParameterList") - public Result selectItemParameterList(Page page,StructureItemParameter itemParameter) throws Exception { + @GetMapping("/selectItemParameterList") + public Result selectItemParameterList(Page page,StructureItemParameter itemParameter) { return Result.success(capacityScopeService.selectItemParameterList(page, itemParameter)); } @@ -72,7 +72,7 @@ } @ApiOperation(value = "鍒犻櫎椤圭洰妫�楠屽弬鏁�") - @PostMapping("/delItemParameter") + @DeleteMapping("/delItemParameter") public Result<?> delItemParameter(Integer id) { return Result.success(capacityScopeService.delItemParameter(id)); } @@ -84,8 +84,8 @@ } @ApiOperation(value = "鑾峰彇妫�楠屽璞�") - @PostMapping("/selectTestObjectList") - public Result selectTestObjectList(Page page,PageTestObjectDto pageTestObjectDto) throws Exception { + @GetMapping("/selectTestObjectList") + public Result selectTestObjectList(Page page,PageTestObjectDto pageTestObjectDto) { return Result.success(capacityScopeService.selectTestObjectList(page, pageTestObjectDto)); } @@ -96,7 +96,7 @@ } @ApiOperation(value = "鍒犻櫎妫�楠屽璞�") - @PostMapping("/delTestObject") + @DeleteMapping("/delTestObject") public Result<?> delTestObject(Integer id) { return Result.success(capacityScopeService.delTestObject(id)); } @@ -114,14 +114,14 @@ } @ApiOperation(value = "璁惧閲岄潰閫夋嫨妫�楠岄」鐩�(鏍戝舰缁撴瀯)") - @PostMapping("/getInsProduction") + @GetMapping("/getInsProduction") public Result getInsProduction() { return Result.success(capacityScopeService.getInsProduction()); } @ApiOperation(value = "缁存姢妫�楠屽璞$殑浜у搧") - @PostMapping("/selectProductListByObjectId") - public Result selectProductListByObjectId(Page page,ProductDTO1 productDTO) throws Exception { + @GetMapping("/selectProductListByObjectId") + public Result selectProductListByObjectId(Page page,ProductDTO1 productDTO) { return Result.success(productService.selectProductListByObjectId(page, productDTO)); } @@ -138,7 +138,7 @@ } @ApiOperation(value = "鍒犻櫎浜у搧") - @PostMapping("/delProduct") + @DeleteMapping("/delProduct") public Result delProduct(Integer id) { return Result.success(productService.delProduct(id)); } @@ -359,7 +359,7 @@ buffer.append("]"); str.setRadiusList(buffer.toString()); } - // 鏀惰垂鏍囧噯 + //鏀惰垂鏍囧噯 if (list1.get(26) == null) { str.setRates(null); } else { @@ -390,4 +390,10 @@ } return Result.success(); } + + @ApiOperation(value = "鏇存柊杞﹂棿") + @PostMapping("/updateWorkShop") + public Result updateWorkShop(Integer productId,Integer workShopId,String name) { + return Result.success(productService.updateWorkShop(productId,workShopId,name)); + } } -- Gitblit v1.9.3