From 1bc97562ccf38d0b6235f2efdba35eb68f1f208b Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 10 十一月 2025 22:06:55 +0800
Subject: [PATCH] fix:修复 sysuser
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
index 7175013..0480114 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
@@ -65,7 +65,6 @@
/**
* 鏌ヨ浠诲姟闄勪欢鍒楄〃
*/
- @PreAuthorize("@ss.hasPermi('task:general:query')")
@GetMapping("/list/{taskId}")
public AjaxResult list(@PathVariable("taskId") Long taskId) {
SysTask task = sysTaskService.getTaskDetail(taskId);
@@ -75,12 +74,12 @@
/**
* 涓婁紶浠诲姟闄勪欢
*/
- @PreAuthorize("@ss.hasPermi('task:general:edit')")
+
@Log(title = "浠诲姟闄勪欢", businessType = BusinessType.INSERT)
@PostMapping("/upload/{taskId}")
public AjaxResult upload(@PathVariable("taskId") Long taskId,
@RequestParam("file") MultipartFile file,
- @RequestParam(value = "category", required = false) String category) {
+ @RequestParam(value = "category", required = true) String category) {
try {
Long attachmentId= sysTaskService.uploadAttachment(taskId, file, category);
if (attachmentId > 0) {
@@ -119,7 +118,6 @@
/**
* 鍒犻櫎浠诲姟闄勪欢
*/
- @PreAuthorize("@ss.hasPermi('task:general:edit')")
@Log(title = "浠诲姟闄勪欢", businessType = BusinessType.DELETE)
@DeleteMapping("/{attachmentId}")
public AjaxResult remove(@PathVariable("attachmentId") Long attachmentId) {
@@ -138,7 +136,6 @@
/**
* 浠庡井淇ediaId涓婁紶闄勪欢锛堝井淇″皬绋嬪簭涓撶敤锛�
*/
- @PreAuthorize("@ss.hasPermi('task:general:edit')")
@Log(title = "浠诲姟闄勪欢", businessType = BusinessType.INSERT)
@PostMapping("/uploadFromWechat/{taskId}")
public AjaxResult uploadFromWechat(@PathVariable("taskId") Long taskId,
--
Gitblit v1.9.1