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/BaseAnnextypeController.java |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java
index 3443496..47390ca 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java
@@ -1,6 +1,7 @@
 package com.ruoyi.web.controller.project;
 
 import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.annotation.NotRepeatCommit;
 import com.ruoyi.common.annotation.RepeatSubmit;
 import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.domain.AjaxResult;
@@ -40,7 +41,7 @@
      * 鏌ヨ鎹愮尞闄勪欢鍒楄〃
      */
     @ApiOperation("鏌ヨ鎹愮尞闄勪欢鍒楄〃")
-    @PreAuthorize("@ss.hasPermi('system:annextype:list')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:list')")
     @GetMapping("/list")
     public TableDataInfo list(BaseAnnextype baseAnnextype) {
         startPage();
@@ -52,7 +53,7 @@
      * 瀵煎嚭鎹愮尞闄勪欢鍒楄〃
      */
     @ApiOperation("瀵煎嚭鎹愮尞闄勪欢鍒楄〃")
-    @PreAuthorize("@ss.hasPermi('system:annextype:export')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:export')")
     @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
     public AjaxResult export(BaseAnnextype baseAnnextype) {
@@ -66,7 +67,7 @@
      * 鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅
      */
     @ApiOperation("鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅")
-    @PreAuthorize("@ss.hasPermi('system:annextype:query')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:query')")
     @GetMapping(value = "/getInfo/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         log.info("鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅{}锛�", id);
@@ -78,7 +79,7 @@
      * 鏂板鎹愮尞闄勪欢
      */
     @ApiOperation("鏂板鎹愮尞闄勪欢")
-    @PreAuthorize("@ss.hasPermi('system:annextype:add')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:add')")
     @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.INSERT)
     @PostMapping("/add")
     @RepeatSubmit
@@ -88,14 +89,15 @@
         if (ObjectUtils.isEmpty(baseAnnextype) || StringUtils.isEmpty(baseAnnextype.getDonationcategory()) || StringUtils.isEmpty(baseAnnextype.getAnnextype())) {
             throw new BaseException("璇锋鏌ユ崘鐚被鍒拰闄勪欢绫诲瀷锛屼负绌轰簡");
         }
-        return toAjax(baseAnnextypeService.save(baseAnnextype));
+        boolean save = baseAnnextypeService.save(baseAnnextype);
+        return AjaxResult.success(baseAnnextype);
     }
 
     /**
      * 淇敼鎹愮尞闄勪欢
      */
     @ApiOperation("淇敼鎹愮尞闄勪欢")
-    @PreAuthorize("@ss.hasPermi('system:annextype:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:edit')")
     @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.UPDATE)
     @PostMapping("/edit")
     @RepeatSubmit
@@ -112,7 +114,7 @@
      * 鍒犻櫎鎹愮尞闄勪欢
      */
     @ApiOperation("鍒犻櫎鎹愮尞闄勪欢")
-    @PreAuthorize("@ss.hasPermi('system:annextype:remove')")
+    // @PreAuthorize("@ss.hasPermi('system:annextype:remove')")
     @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.DELETE)
     @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {

--
Gitblit v1.9.3