lxw
2022-08-10 820224c80bb64721df20f52fcb5c388a991e83b0
src/main/java/com/whyc/controller/ProductBomController.java
@@ -56,4 +56,27 @@
        return new Response().set(1,true,"记录下载日志");
    }
    @ApiOperation(tags = "产品管理",value = "获取所有产品信息")
    @GetMapping("getAllBom")
    public Response getAllBom( @RequestParam int pageCurr, @RequestParam int pageSize){
        return service.getAllBom(pageCurr,pageSize);
    }
    @ApiOperation(tags = "产品管理",value = "根据母料型号查询子件信息及有最新版本关联的散装件信息")
    @GetMapping("getSubByComponentProduct")
    public Response getSubByComponentProduct(@RequestParam String parentModel){
        return service.getSubByComponentProduct(parentModel);
    }
    @ApiOperation(tags = "产品管理",value = "产品打包下载")
    @GetMapping("downloadBom")
    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);
    }
}