From d5c2c0762ccbb2bb33635f99480d404f1fb10d5a Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 22 二月 2024 18:26:29 +0800 Subject: [PATCH] 修改流程代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java index a42ef85..7f3bae3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java @@ -1,4 +1,4 @@ -package com.ruoyi.project.controller; +package com.ruoyi.web.controller.project; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.RepeatSubmit; @@ -75,11 +75,12 @@ @ApiOperation("鏂板宸梾鎶ラ攢浠樻淇℃伅") //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:add')") @Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") @RepeatSubmit public AjaxResult add(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee) { - return toAjax(serviceReimbursementpayeeService.save(serviceReimbursementpayee)); + boolean save = serviceReimbursementpayeeService.save(serviceReimbursementpayee); + return AjaxResult.success(serviceReimbursementpayee); } /** @@ -88,7 +89,7 @@ @ApiOperation("淇敼宸梾鎶ラ攢浠樻淇℃伅") //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:edit')") @Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/reimbursementpayeeEdit") @RepeatSubmit public AjaxResult edit(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee) { @@ -101,7 +102,7 @@ @ApiOperation("鍒犻櫎宸梾鎶ラ攢浠樻淇℃伅") //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:remove')") @Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable String[] ids) { return toAjax(serviceReimbursementpayeeService.removeByIds(Arrays.asList(ids))); -- Gitblit v1.9.3