| | |
| | | return productBomService.add(productBom); |
| | | } |
| | | |
| | | @ApiModelProperty("复制BOM") |
| | | @PostMapping("/copy") |
| | | @Log(title = "复制BOM", businessType = BusinessType.INSERT) |
| | | public AjaxResult copy(@RequestBody ProductBomDto productBom) { |
| | | return productBomService.copy(productBom); |
| | | } |
| | | |
| | | @ApiOperation("更新BOM") |
| | | @Log(title = "修改", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/update") |
| | | public AjaxResult update(@RequestBody ProductBom productBom) { |
| | | return AjaxResult.success(productBomService.updateById(productBom)); |
| | | return AjaxResult.success(productBomService.update(productBom)); |
| | | } |
| | | |
| | | @ApiOperation("删除BOM") |