yuan
9 小时以前 47806d9e390ee00e1d29ad1da8c1aa908882a758
src/main/java/com/ruoyi/technology/controller/TechnologyOperationController.java
@@ -31,21 +31,21 @@
    }
    @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 technologyOperationService.update(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));