| | |
| | | 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") |
| | |
| | | private ProductBomHistoryService service; |
| | | |
| | | @ApiOperation(value = "根据子件名称和母料型号查询历史版本记录") |
| | | @GetMapping("getBomByPModelAndSName") |
| | | public Response getBomByPModelAndSName(@RequestParam String pmodel, @RequestParam int sname){ |
| | | return service.getBomByPModelAndSName(pmodel,sname); |
| | | @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); |
| | | } |
| | | } |