| | |
| | | @PreAuthorize("@ss.hasPermi('product:bom:export')") |
| | | @Operation(summary = "导出BOM文件") |
| | | @Log(title = "导出BOM文件", businessType = BusinessType.EXPORT) |
| | | public void exportBom(HttpServletResponse response, @RequestParam Integer bomId) { |
| | | public void exportBom(HttpServletResponse response, @RequestParam Long bomId) { |
| | | technologyBomService.exportBom(response, bomId); |
| | | } |
| | | |
| | |
| | | ExcelUtil<BomImportDto> excelUtil = new ExcelUtil<>(BomImportDto.class); |
| | | excelUtil.importTemplateExcel(response, "BOM导入模板"); |
| | | } |
| | | |
| | | @PostMapping("/copy") |
| | | @Log(title = "Copy technology BOM", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "复制BOM") |
| | | public R copy(@RequestBody TechnologyBom technologyBom) { |
| | | return technologyBomService.copy(technologyBom); |
| | | } |
| | | } |