From de0e3d2ac2c6d971ba8889a7b194c9be72c59137 Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期四, 09 二月 2023 14:46:40 +0800 Subject: [PATCH] 提交暂时无用的接口 --- src/main/java/com/whyc/controller/ProductController.java | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProductController.java b/src/main/java/com/whyc/controller/ProductController.java index 28c73be..cb05c8c 100644 --- a/src/main/java/com/whyc/controller/ProductController.java +++ b/src/main/java/com/whyc/controller/ProductController.java @@ -14,7 +14,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; -import java.util.Date; @Api(tags = "浜у搧绠$悊") @RestController @@ -81,6 +80,18 @@ return bomHistoryService.getBomHistoryAndMaterial(productId,version); } + @ApiOperation(value = "鍘嗗彶浜у搧淇℃伅鏌ョ湅锛堜骇鍝佷腑鏈�0120寮�澶寸殑鐗╂枡鍏跺疄鏄骇鍝侊紝鏌ョ湅浜у搧淇℃伅锛�",notes = "2.8淇敼鍚庝娇鐢紒锛侊紒鏆傛椂鏃犵敤锛侊紒锛侊紒") + @GetMapping("getBomHistoryAndMaterial_0120") + public Response getBomHistoryAndMaterial_0120( @RequestParam String parentCode, @RequestParam String parentName, @RequestParam String parentModel){ + return bomHistoryService.getBomHistoryAndMaterial_0120(parentCode,parentName,parentModel); + } + + @ApiOperation(value = "鏍规嵁浜у搧姣嶆枡鍨嬪彿锛屽畾鍒跺崟鍙凤紝鐗堟湰涓嬭浇鍘熷鍘嬬缉鍖呮枃浠�",notes = "11.17淇敼鍚庝娇鐢�") + @GetMapping("getOriginalZip") + public Response getOriginalZip( @RequestParam String parentModel,@RequestParam(required = false) String customCode,@RequestParam int version){ + return bomHistoryService.getOriginalZip(parentModel,customCode,version); + } + @ApiOperation(value = "鍘嗗彶浜у搧涓嬭浇(浜у搧id鍜岀増鏈�<涓嬭浇鐨勭増鏈�>)",notes = "8.17淇敼鍚庝娇鐢�") @GetMapping("downloadProductHistory") @@ -106,4 +117,24 @@ public Response add(@RequestBody Product product) throws IOException { return service.add(product); } + + @ApiOperation(value = "鏍规嵁浜у搧id鏌ヨ琚攣瀹氱殑鐗╂枡dwg鍜屼骇鍝佷笣鍗�",notes = "8.17淇敼鍚庝娇鐢�") + @GetMapping("getLockedByProductId") + public Response getLockedByProductId( @RequestParam int productId){ + return service.getLockedByProductId(productId); + } + + /*@GetMapping("manualUpdate") + @Transactional + public void manualUpdate(){ + //material灞炴�ц浆绉诲埌bom鍜宐omHistory + bomHistoryService.updateMaterialField2BomHistory(); + bomService.updateMaterialField2Bom(); + }*/ + + @ApiOperation(tags = "鍙嶉绠$悊",value = "鏌ヨ褰撳墠浣跨敤鐨勬墍鏈夌殑浜у搧") + @GetMapping("getFkProduct") + public Response getFkProduct(){ + return service.getFkProduct(); + } } -- Gitblit v1.9.1