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/ServiceDonorpaymentController.java |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorpaymentController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorpaymentController.java
index a0be903..16e01e9 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorpaymentController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorpaymentController.java
@@ -46,7 +46,6 @@
      * 鏌ヨ璐圭敤鏀舵鍗曞垪琛�
      */
     @ApiOperation("鏌ヨ璐圭敤鏀舵鍗曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:list')")
     @GetMapping("/list")
     public TableDataInfo list(ServiceDonorpayment serviceDonorpayment) {
         startPage();
@@ -58,7 +57,6 @@
      * 瀵煎嚭璐圭敤鏀舵鍗曞垪琛�
      */
     @ApiOperation("瀵煎嚭璐圭敤鏀舵鍗曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:export')")
     @Log(title = "璐圭敤鏀舵鍗�", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
     public AjaxResult export(ServiceDonorpayment serviceDonorpayment) {
@@ -71,7 +69,6 @@
      * 鑾峰彇璐圭敤鏀舵鍗曡缁嗕俊鎭�
      */
     @ApiOperation("鑾峰彇璐圭敤鏀舵鍗曡缁嗕俊鎭�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:query')")
     @GetMapping(value = "/getInfo/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return AjaxResult.success(serviceDonorpaymentService.getById(id));
@@ -81,7 +78,6 @@
      * 鏂板璐圭敤鏀舵鍗�
      */
     @ApiOperation("鏂板璐圭敤鏀舵鍗�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:add')")
     @Log(title = "璐圭敤鏀舵鍗�", businessType = BusinessType.INSERT)
     @PostMapping("/add")
     @RepeatSubmit
@@ -94,7 +90,6 @@
      * 淇敼璐圭敤鏀舵鍗�
      */
     @ApiOperation("淇敼璐圭敤鏀舵鍗�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:edit')")
     @Log(title = "璐圭敤鏀舵鍗�", businessType = BusinessType.UPDATE)
     @PostMapping("/edit")
     @RepeatSubmit
@@ -106,7 +101,7 @@
      * 鍒犻櫎璐圭敤鏀舵鍗�
      */
     @ApiOperation("鍒犻櫎璐圭敤鏀舵鍗�")
-    @PreAuthorize("@ss.hasPermi('system:donorpayment:remove')")
+    // @PreAuthorize("@ss.hasPermi('system:donorpayment:remove')")
     @Log(title = "璐圭敤鏀舵鍗�", businessType = BusinessType.DELETE)
     @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
@@ -127,12 +122,13 @@
         configuration.setDirectoryForTemplateLoading(new File(filePath));
         Template t = null;
         try {
-            t = configuration.getTemplate("娴欐睙鐪丱PO鏀舵缁撶畻鍗�.ftl");
+//            t = configuration.getTemplate("娴欐睙鐪丱PO鏀舵缁撶畻鍗�.ftl");
+            t = configuration.getTemplate("娴欐睙鐪佹帴鏀跺櫒瀹樼粨绠楄〃.ftl");
         } catch (IOException e) {
             e.printStackTrace();
         }
         String newTime = String.valueOf(Calendar.getInstance().getTimeInMillis());
-        String name = "娴欐睙鐪丱PO鏀舵缁撶畻鍗昣"+ newTime;
+        String name = "娴欐睙鐪佹帴鏀跺櫒瀹樼粨绠楄〃_"+ newTime;
         //杈撳嚭鏂囨。璺緞鍙婂悕绉�
         File outFile = new File(RuoYiConfig.getProfile() + "/download/wordtemplate/" + name + ".doc");
         Writer out = null;

--
Gitblit v1.9.3