lxw
2022-08-15 e39ab475b0d7718e7f337def4f8d96438ef1c0c1
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 = "根据母料型号查询子件信息及有最新版本关联的散装件信息")
    @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);
    }
}