lxw
2022-09-13 c5538e9c8f0f3a2a6c5f5b8caad3eef25ee0b8f3
src/main/java/com/whyc/controller/ProductBomHistoryController.java
@@ -17,9 +17,29 @@
    @Autowired
    private ProductBomHistoryService service;
    @ApiOperation(value = "根据子件名称和母料编号查询历史版本记录")
    @GetMapping("getBomByPCodeAndSName")
    public Response getBomByPCodeAndSName(@RequestParam int pcode, @RequestParam int sname){
        return service.getBomByPCodeAndSName(pcode,sname);
    @ApiOperation(value = "根据子件名称和母料型号查询历史版本记录")
    @GetMapping("getBomHistoryByPModelAndSName")
    public Response getBomHistoryByPModelAndSName(@RequestParam String pmodel, @RequestParam String sname){
        return service.getBomHistoryByPModelAndSName(pmodel,sname);
    }
   /*
    @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);
    }*/
    @GetMapping("compare")
    @ApiOperation(value = "版本对比",notes = "preProductId:旧版本的产品id,productId:新版本的产品id;返回结果data,data2,data3分别对应diffList,addList,deleteList")
    public Response compare(@RequestParam int preProductId,@RequestParam int productId){
        return service.compare(preProductId,productId);
    }
}