From dc3336685e80c593a3654a6e53e3e1d1d13b2b50 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 06 五月 2026 15:30:13 +0800
Subject: [PATCH] fix(approve): 修复流程配置节点审批人为空时的异常处理

---
 src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java b/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java
index 17cbb47..79ae5d4 100644
--- a/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java
+++ b/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java
@@ -1,16 +1,10 @@
 package com.ruoyi.basic.controller;
 
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.ruoyi.basic.dto.StorageAttachmentDTO;
-import com.ruoyi.basic.dto.StorageBlobDTO;
-import com.ruoyi.basic.dto.SupplierManageDto;
-import com.ruoyi.basic.enums.ApplicationTypeEnum;
-import com.ruoyi.basic.enums.RecordTypeEnum;
-import com.ruoyi.basic.pojo.StorageAttachment;
 import com.ruoyi.basic.service.StorageAttachmentService;
-import com.ruoyi.common.constant.StorageAttachmentConstants;
-import com.ruoyi.common.enums.StorageAttachmentRecordType;
 import com.ruoyi.framework.web.domain.R;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
 import lombok.AllArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 
@@ -18,27 +12,31 @@
 
 @RestController
 @AllArgsConstructor
-@RequestMapping("/basic/storage_attachment")
+@Tag(name = "閫氱敤涓婁紶")
+@RequestMapping("/storageAttachment")
 public class StorageAttachmentController {
     private StorageAttachmentService storageAttachmentService;
 
     /**
      * 鍒嗛〉鏌ヨ閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
-     * @param page 鍒嗛〉鍙傛暟
+     *
      * @param storageAttachmentDTO 鍏宠仈璁板綍淇℃伅
      * @return 鍒嗛〉缁撴灉
      */
-    @GetMapping("/listPage")
-    public R listPage(Page page, StorageAttachmentDTO storageAttachmentDTO) {
-        return R.ok(storageAttachmentService.listPage(page, storageAttachmentDTO));
+    @GetMapping("/list")
+    @Operation(summary = "鍒嗛〉鏌ヨ閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�")
+    public R list(StorageAttachmentDTO storageAttachmentDTO) {
+        return R.ok(storageAttachmentService.list(storageAttachmentDTO));
     }
 
     /**
      * 鍒犻櫎閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
+     *
      * @param ids 鏂囦欢id鍒楄〃
      * @return 鍒犻櫎缁撴灉
      */
     @DeleteMapping("/delete")
+    @Operation(summary = "鍒犻櫎閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�")
     public R batchDelete(@RequestBody List<Long> ids) {
         return R.ok(storageAttachmentService.batchDeleteStorageAttachment(ids));
     }
@@ -47,6 +45,7 @@
      * 淇濆瓨閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
      */
     @PostMapping("/add")
+    @Operation(summary = "淇濆瓨閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�")
     public R add(@RequestBody StorageAttachmentDTO storageAttachmentDTO) {
         storageAttachmentService.saveStorageAttachment(storageAttachmentDTO);
         return R.ok();

--
Gitblit v1.9.3