lxw
2022-08-19 6fbdaa6f6d9da6d489d079f3b8b8820e49be26c8
src/main/java/com/whyc/controller/ProductBomHistoryController.java
@@ -10,6 +10,9 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Api(tags = "文档历史信息管理")
@RestController
@RequestMapping("productBomHistory")
@@ -23,9 +26,15 @@
        return service.getBomHistoryByPModelAndSName(pmodel,sname);
    }
    /*@ApiOperation(tags="产品管理",value = "查询产品的最大版本信息")
    @GetMapping("getMaxBoom")
    public Response getMaxBoom(@RequestParam String parentCode,@RequestParam String parentName,@RequestParam String parentModel){
        return service.getMaxBoom(parentCode,parentName,parentModel);
    }*/
    @ApiOperation(tags="产品管理",value = "查询具体某一版本产品信息")
    @GetMapping("getBoomByVersion")
    public Response getBoomByVersion(@RequestParam String parentModel,@RequestParam int version){
        return service.getBoomByVersion(parentModel,version);
    }
    @ApiOperation(tags="产品管理",value = "下载指定版本的产品")
    @GetMapping("downloaByVersion")
    public void downloaByVersion(HttpServletRequest req, HttpServletResponse resp, @RequestParam String parentModel, @RequestParam int version){
        service.downloaByVersion(req,resp,parentModel,version);
    }
}