liusheng
2024-03-08 c2600591e819743757f8668d0c684da1e24cb7d4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExpertexpenseController.java
@@ -2,6 +2,8 @@
import java.util.Arrays;
import java.util.List;
import com.ruoyi.common.annotation.NotRepeatCommit;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -78,11 +80,12 @@
     */
    @ApiOperation("新增费用申请主")
    @Log(title = "费用申请主", businessType = BusinessType.INSERT)
    @PostMapping
    @RepeatSubmit
    @PostMapping("/add")
    @NotRepeatCommit(key = "param:arg[1]", value = 30000)
    public AjaxResult add(@RequestBody ServiceExpertexpense serviceExpertexpense)
    {
        return toAjax(serviceExpertexpenseService.save(serviceExpertexpense));
        boolean save = serviceExpertexpenseService.save(serviceExpertexpense);
        return AjaxResult.success(serviceExpertexpense);
    }
    /**
@@ -90,7 +93,7 @@
     */
    @ApiOperation("修改费用申请主")
    @Log(title = "费用申请主", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    @RepeatSubmit    
    public AjaxResult edit(@RequestBody ServiceExpertexpense serviceExpertexpense)
    {
@@ -102,7 +105,7 @@
     */
    @ApiOperation("删除费用申请主")
    @Log(title = "费用申请主", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(serviceExpertexpenseService.removeByIds(Arrays.asList(ids)));