| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "图纸管理") |
| | | @RestController |
| | |
| | | return service.searchCadDrawer(productBom,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation("图纸文件下载") |
| | | @GetMapping("downloadCadDrawer") |
| | | public void downloadCadDrawer(HttpServletRequest req, HttpServletResponse resp){ |
| | | service.downloadCadDrawer(req,resp); |
| | | @ApiOperation("图纸文件打包下载") |
| | | @PostMapping("downloadCadDrawer") |
| | | public void downloadCadDrawer(HttpServletRequest req, HttpServletResponse resp,@RequestBody ArrayList<String> pictureUrls){ |
| | | service.downloadCadDrawer(req,resp,pictureUrls); |
| | | } |
| | | @ApiOperation(value = "根据子件code获取最终的信息") |
| | | @GetMapping("getBomBySubcode") |
| | | public Response getBomBySubcode(@RequestParam String scode){ |
| | | return service.getBomBySubcode(scode); |
| | | } |
| | | @ApiOperation(value = "下载操作日志记录") |
| | | @GetMapping("downloadLog") |
| | | public Response downloadLog(@RequestParam(required = false) String parentModel,@RequestParam(required = false) String subModel){ |
| | | return new Response().set(1,true,"记录下载日志"); |
| | | } |
| | | |
| | | } |