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/ProductBomController.java |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ProductBomController.java b/src/main/java/com/whyc/controller/ProductBomController.java
index d1b66de..c43c79e 100644
--- a/src/main/java/com/whyc/controller/ProductBomController.java
+++ b/src/main/java/com/whyc/controller/ProductBomController.java
@@ -58,14 +58,25 @@
 
     @ApiOperation(tags = "浜у搧绠$悊",value = "鑾峰彇鎵�鏈変骇鍝佷俊鎭�")
     @GetMapping("getAllBom")
-    public Response getAllBom(){
-        return service.getAllBom();
+    public Response getAllBom( @RequestParam(required = false) String parentCode,@RequestParam(required = false) String parentName, @RequestParam(required = false) String parentModel,  @RequestParam int pageCurr, @RequestParam int pageSize){
+        return service.getAllBom(parentCode,parentName,parentModel,pageCurr,pageSize);
+    }
+
+    @ApiOperation(tags = "浜у搧绠$悊",value = "鏍规嵁姣嶆枡鍨嬪彿鏌ヨ瀛愪欢淇℃伅鍙婃湁鏈�鏂扮増鏈叧鑱旂殑鏁h浠朵俊鎭�")
+    @GetMapping("getSubByComponentProduct")
+    public Response getSubByComponentProduct(@RequestParam String parentModel){
+        return service.getSubByComponentProduct(parentModel);
     }
 
     @ApiOperation(tags = "浜у搧绠$悊",value = "浜у搧鎵撳寘涓嬭浇")
     @GetMapping("downloadBom")
-    public Response downloadBom(HttpServletRequest req, HttpServletResponse resp,@RequestParam String parentModel){
-        return service.downloadBom(req,resp,parentModel);
+    public void downloadBom(HttpServletRequest req, HttpServletResponse resp,@RequestParam String parentModel){
+         service.downloadBom(req,resp,parentModel);
+    }
+    @ApiOperation(tags = "鏁h浠剁鐞�",value = "鏌ヨ鎵�鏈変骇鍝佷腑娌℃湁涓庢寚瀹氭暎瑁呬欢鍏宠仈鐨勫瓙浠�")
+    @GetMapping("getAllSubWithOutComponent")
+    public Response getAllSubWithOutComponent(@RequestParam int componentId){
+        return  service.getAllSubWithOutComponent(componentId);
     }
 
 }

--
Gitblit v1.9.1