| | |
| | | @Log(title = "修改", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/update") |
| | | public AjaxResult update(@RequestBody ProductBom productBom) { |
| | | return AjaxResult.success(productBomService.updateById(productBom)); |
| | | return AjaxResult.success(productBomService.updateBom(productBom)); |
| | | } |
| | | |
| | | @ApiOperation("删除BOM") |
| | |
| | | } |
| | | |
| | | |
| | | @PostMapping("uploadBom") |
| | | @PreAuthorize("@ss.hasPermi('product:bom:import')") |
| | | @PostMapping("/uploadBom") |
| | | @Log(title = "根据Excel导入BOM", businessType = BusinessType.IMPORT) |
| | | @ApiOperation("根据Excel导入BOM") |
| | | public AjaxResult uploadBom(@RequestParam("file") MultipartFile file) { |
| | | return productBomService.uploadBom(file); |
| | | public void uploadBom(@RequestParam("file") MultipartFile file,HttpServletResponse response) { |
| | | productBomService.uploadBom(file,response); |
| | | } |
| | | |
| | | @PostMapping("exportBom") |