From 032cf35726c649b48ac04d0088fd8ae9117c09e4 Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期三, 10 八月 2022 15:11:26 +0800
Subject: [PATCH] 更新散装件审批

---
 src/main/java/com/whyc/controller/ProductBomHistoryController.java |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ProductBomHistoryController.java b/src/main/java/com/whyc/controller/ProductBomHistoryController.java
index db1725b..85665a8 100644
--- a/src/main/java/com/whyc/controller/ProductBomHistoryController.java
+++ b/src/main/java/com/whyc/controller/ProductBomHistoryController.java
@@ -10,6 +10,9 @@
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
 @Api(tags = "鏂囨。鍘嗗彶淇℃伅绠$悊")
 @RestController
 @RequestMapping("productBomHistory")
@@ -23,9 +26,15 @@
         return service.getBomHistoryByPModelAndSName(pmodel,sname);
     }
 
-    /*@ApiOperation(tags="浜у搧绠$悊",value = "鏌ヨ浜у搧鐨勬渶澶х増鏈俊鎭�")
-    @GetMapping("getMaxBoom")
-    public Response getMaxBoom(@RequestParam String parentCode,@RequestParam String parentName,@RequestParam String parentModel){
-        return service.getMaxBoom(parentCode,parentName,parentModel);
-    }*/
+    @ApiOperation(tags="浜у搧绠$悊",value = "鏌ヨ鍏蜂綋鏌愪竴鐗堟湰浜у搧淇℃伅")
+    @GetMapping("getBoomByVersion")
+    public Response getBoomByVersion(@RequestParam String parentModel,@RequestParam int version){
+        return service.getBoomByVersion(parentModel,version);
+    }
+
+    @ApiOperation(tags="浜у搧绠$悊",value = "涓嬭浇鎸囧畾鐗堟湰鐨勪骇鍝�")
+    @GetMapping("downloaByVersion")
+    public void downloaByVersion(HttpServletRequest req, HttpServletResponse resp, @RequestParam String parentModel, @RequestParam int version){
+        service.downloaByVersion(req,resp,parentModel,version);
+    }
 }

--
Gitblit v1.9.1