From 48b5972d9a9a255ecbaecaa4116ec2cd05ae34d1 Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期一, 15 八月 2022 14:31:14 +0800 Subject: [PATCH] 物料编码字典新建及数据导入 --- src/main/java/com/whyc/controller/ProductBomController.java | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProductBomController.java b/src/main/java/com/whyc/controller/ProductBomController.java index d1b66de..1f82bd3 100644 --- a/src/main/java/com/whyc/controller/ProductBomController.java +++ b/src/main/java/com/whyc/controller/ProductBomController.java @@ -36,8 +36,8 @@ @ApiOperation("鍥剧焊鏂囦欢鎵撳寘涓嬭浇") @PostMapping("downloadCadDrawer") - public void downloadCadDrawer(HttpServletRequest req, HttpServletResponse resp,@RequestBody ArrayList<String> pictureUrls){ - service.downloadCadDrawer(req,resp,pictureUrls); + public void downloadCadDrawer(HttpServletRequest req, HttpServletResponse resp,@RequestBody List<ProductBom> boms){ + service.downloadCadDrawer(req,resp,boms); } @ApiOperation(value = "鏍规嵁瀛愪欢code鑾峰彇鏈�缁堢殑淇℃伅") @GetMapping("getBomBySubcode") @@ -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