From c20c99f256e2f47bd45f0b48fb6b1bcc83960f1e Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 21 三月 2024 14:22:13 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementdetailSharedController.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementdetailSharedController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementdetailSharedController.java index d9a3a17..d5434c0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementdetailSharedController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementdetailSharedController.java @@ -1,4 +1,4 @@ -package com.ruoyi.project.controller; +package com.ruoyi.web.controller.project; import java.util.Arrays; import java.util.List; @@ -82,11 +82,12 @@ @ApiOperation("鏂板鎶ラ攢鐢宠鏄庣粏") @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:add')") @Log(title = "鎶ラ攢鐢宠鏄庣粏", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") @RepeatSubmit public AjaxResult add(@RequestBody ServiceReimbursementdetailShared serviceReimbursementdetailShared) { - return toAjax(serviceReimbursementdetailSharedService.save(serviceReimbursementdetailShared)); + boolean save = serviceReimbursementdetailSharedService.save(serviceReimbursementdetailShared); + return AjaxResult.success(serviceReimbursementdetailShared); } /** @@ -95,7 +96,7 @@ @ApiOperation("淇敼鎶ラ攢鐢宠鏄庣粏") @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:edit')") @Log(title = "鎶ラ攢鐢宠鏄庣粏", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") @RepeatSubmit public AjaxResult edit(@RequestBody ServiceReimbursementdetailShared serviceReimbursementdetailShared) { @@ -108,7 +109,7 @@ @ApiOperation("鍒犻櫎鎶ラ攢鐢宠鏄庣粏") @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:remove')") @Log(title = "鎶ラ攢鐢宠鏄庣粏", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(serviceReimbursementdetailSharedService.removeByIds(Arrays.asList(ids))); -- Gitblit v1.9.3