| | |
| | | private final TechnologyOperationService technologyOperationService; |
| | | |
| | | @GetMapping("/listPage") |
| | | @Log(title = "Technology operation page", businessType = BusinessType.OTHER) |
| | | @Log(title = "工序分页查询", businessType = BusinessType.OTHER) |
| | | @Operation(summary = "工序分页查询") |
| | | public R<IPage<TechnologyOperationVo>> listPage(Page<TechnologyOperationDto> page, TechnologyOperationDto technologyOperationDto) { |
| | | return R.ok(technologyOperationService.listPage(page, technologyOperationDto)); |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | @Log(title = "Add technology operation", businessType = BusinessType.INSERT) |
| | | @Log(title = "工序新增", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增工序") |
| | | public R add(@RequestBody TechnologyOperationDto technologyOperationDto) { |
| | | return technologyOperationService.add(technologyOperationDto); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @Log(title = "Update technology operation", 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 = "Delete technology operation", businessType = BusinessType.DELETE) |
| | | @Log(title = "删除工序", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "批量删除工序") |
| | | public R batchDelete(@RequestBody List<Long> ids) { |
| | | return R.ok(technologyOperationService.batchDelete(ids)); |