From c4174bbb103d95d6cd4714d3cc3070559444d70e Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 30 四月 2026 17:17:41 +0800
Subject: [PATCH] 删除无用代码

---
 src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java |   33 ++++++++++++++-------------------
 1 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java b/src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java
index 730201d..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,41 +12,42 @@
 
 @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));
     }
 
     /**
      * 淇濆瓨閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
-     * @param storageBlobs 鏂囦欢淇℃伅鍒楄〃
-     * @param recordId 绠$悊璁板綍id
-     * @param recordType 鍏宠仈璁板綍绫诲瀷
-     * @param fileType 鏂囦欢绫诲瀷
      */
     @PostMapping("/add")
-    public R add(@RequestBody List<StorageBlobDTO> storageBlobs, Long recordId, String recordType, String fileType) {
-        storageAttachmentService.saveStorageAttachment(storageBlobs, recordId, recordType, fileType);
+    @Operation(summary = "淇濆瓨閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�")
+    public R add(@RequestBody StorageAttachmentDTO storageAttachmentDTO) {
+        storageAttachmentService.saveStorageAttachment(storageAttachmentDTO);
         return R.ok();
     }
 }

--
Gitblit v1.9.3