From b6dd47b05107fc36d8ff4f7f29a4446521f95503 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 02 一月 2025 18:44:28 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java index d1e4943..85c8792 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java @@ -42,7 +42,7 @@ * 鏌ヨ璐圭敤鐢宠鏄庣粏鍒楄〃 */ @ApiOperation("鏌ヨ璐圭敤鐢宠鏄庣粏鍒楄〃") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:list')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:list')") @GetMapping("/list") public TableDataInfo list(ServiceFunddetailShared serviceFunddetailShared) { @@ -55,7 +55,7 @@ * 瀵煎嚭璐圭敤鐢宠鏄庣粏鍒楄〃 */ @ApiOperation("瀵煎嚭璐圭敤鐢宠鏄庣粏鍒楄〃") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:export')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:export')") @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.EXPORT) @GetMapping("/export") public AjaxResult export(ServiceFunddetailShared serviceFunddetailShared) @@ -69,7 +69,7 @@ * 鑾峰彇璐圭敤鐢宠鏄庣粏璇︾粏淇℃伅 */ @ApiOperation("鑾峰彇璐圭敤鐢宠鏄庣粏璇︾粏淇℃伅") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:query')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -80,20 +80,21 @@ * 鏂板璐圭敤鐢宠鏄庣粏 */ @ApiOperation("鏂板璐圭敤鐢宠鏄庣粏") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:add')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:add')") @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") @RepeatSubmit public AjaxResult add(@RequestBody ServiceFunddetailShared serviceFunddetailShared) { - return toAjax(serviceFunddetailSharedService.save(serviceFunddetailShared)); + boolean save = serviceFunddetailSharedService.save(serviceFunddetailShared); + return AjaxResult.success(serviceFunddetailShared); } /** * 淇敼璐圭敤鐢宠鏄庣粏 */ @ApiOperation("淇敼璐圭敤鐢宠鏄庣粏") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:edit')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:edit')") @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.UPDATE) @PostMapping("/edit") @RepeatSubmit @@ -106,7 +107,7 @@ * 鍒犻櫎璐圭敤鐢宠鏄庣粏 */ @ApiOperation("鍒犻櫎璐圭敤鐢宠鏄庣粏") - @PreAuthorize("@ss.hasPermi('project:funddetailshared:remove')") + // @PreAuthorize("@ss.hasPermi('project:funddetailshared:remove')") @Log(title = "璐圭敤鐢宠鏄庣粏", businessType = BusinessType.DELETE) @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) -- Gitblit v1.9.3