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 | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProductController.java b/src/main/java/com/whyc/controller/ProductController.java index 94e53aa..cb05c8c 100644 --- a/src/main/java/com/whyc/controller/ProductController.java +++ b/src/main/java/com/whyc/controller/ProductController.java @@ -42,9 +42,14 @@ @ApiOperation(value = "鏌ヨ鍑烘墍鏈夌殑浜у搧淇℃伅(鍒嗛〉鍔犳ā绯婃煡璇�<浜у搧鐨勭紪鐮侊紝鍨嬪彿锛屽悕瀛楋紝瀹氬埗琛ㄧ紪鍙�>)",notes = "8.17淇敼鍚庝娇鐢�") @GetMapping("getAllProduct") - public Response getAllProduct(@RequestParam(required = false) String parentCode,@RequestParam(required = false) String parentName, @RequestParam(required = false) String parentModel - , @RequestParam(required = false) String customCode, @RequestParam int pageCurr, @RequestParam int pageSize){ - return service.getAllProduct(parentCode,parentName,parentModel,customCode,pageCurr,pageSize); + public Response getAllProduct(@RequestParam(required = false) String subCode, + @RequestParam(required = false) String parentCode, + @RequestParam(required = false) String parentName, + @RequestParam(required = false) String parentModel, + @RequestParam(required = false) String customCode, + @RequestParam int pageCurr, + @RequestParam int pageSize){ + return service.getAllProduct(subCode,parentCode,parentName,parentModel,customCode,pageCurr,pageSize); } @ApiOperation(value = "鏌ヨ鍑烘墍鏈夌殑浜у搧鏃犲弬涓嶅垎椤碉紙浜у搧涓婁紶鐨勬槸鐢級",notes = "9.2淇敼鍚庝娇鐢�") @@ -74,6 +79,20 @@ public Response getBomHistoryAndMaterial( @RequestParam int productId, @RequestParam int version){ 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") public void downloadProductHistory(HttpServletRequest req, HttpServletResponse resp, @RequestParam int productId, @RequestParam int version){ @@ -82,8 +101,8 @@ @ApiOperation(value = "鍘嗗彶鐗堟湰鍙敤鎬ц瀹�",notes = "8.31淇敼鍚庝娇鐢�") @GetMapping("setpHistoryEnable") - public Response setpHistoryEnable( @RequestParam String parentCode, @RequestParam String customCode, @RequestParam int version,@RequestParam int enabled) { - return historyService.setpHistoryEnable(parentCode, customCode, version, enabled); + public Response setpHistoryEnable( @RequestParam String parentCode, @RequestParam String customCode, @RequestParam int version,@RequestParam int enabled,@RequestParam(required = false) String reason,@RequestParam String versionTime) { + return historyService.setpHistoryEnable(parentCode, customCode, version, enabled,reason,versionTime); } @PostMapping("zipParse") @ApiOperation(value = "zip瑙f瀽",notes = "杩斿洖缁撴灉涓�,杩藉姞data3涓哄姣旂粨鏋�,涓簁ey-value闆嗗悎,key涓篸iffList,addList,deleteList") @@ -98,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