lxw
2022-08-04 0a047f1a368fe24abe254495e96e93665d3b018d
src/main/java/com/whyc/controller/ProductBomController.java
@@ -62,10 +62,21 @@
        return service.getAllBom();
    }
    @ApiOperation(tags = "产品管理",value = "根据母料型号查询子件信息及有关联的散装件信息")
    @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 = "散装件管理",value = "查询所有产品中没有与指定散装件关联的子件")
    @GetMapping("getAllSubWithOutComponent")
    public Response getAllSubWithOutComponent(@RequestParam int componentId){
        return  service.getAllSubWithOutComponent(componentId);
    }
}