| | |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | @Log(title = "工序新增", businessType = BusinessType.INSERT) |
| | | @Log(title = "新增工序", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增工序") |
| | | public R add(@RequestBody TechnologyOperationDto technologyOperationDto) { |
| | | return technologyOperationService.add(technologyOperationDto); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @Log(title = "工序更新", businessType = BusinessType.UPDATE) |
| | | @Log(title = "修改工序", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改工序") |
| | | public R update(@RequestBody com.ruoyi.technology.pojo.TechnologyOperation technologyOperation) { |
| | | return R.ok(technologyOperationService.updateById(technologyOperation)); |
| | | } |
| | | |
| | | @DeleteMapping("/batchDelete") |
| | | @Log(title = "删除工序", businessType = BusinessType.DELETE) |
| | | @Log(title = "批量删除工序", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "批量删除工序") |
| | | public R batchDelete(@RequestBody List<Long> ids) { |
| | | return R.ok(technologyOperationService.batchDelete(ids)); |