From eb66a38fc1f989c3ff91059f8416b1af7ab22b5d Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 30 四月 2026 16:19:37 +0800
Subject: [PATCH] 修改安全培训考核报错

---
 src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java b/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java
index e285063..be7e0cb 100644
--- a/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java
+++ b/src/main/java/com/ruoyi/basic/service/StorageAttachmentService.java
@@ -1,6 +1,14 @@
 package com.ruoyi.basic.service;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.basic.dto.StorageAttachmentDTO;
+import com.ruoyi.basic.dto.StorageAttachmentVO;
+import com.ruoyi.basic.dto.StorageBlobDTO;
+import com.ruoyi.basic.dto.StorageBlobVO;
+import com.ruoyi.basic.enums.ApplicationTypeEnum;
+import com.ruoyi.basic.enums.RecordTypeEnum;
 import com.ruoyi.basic.pojo.StorageAttachment;
 import com.ruoyi.common.constant.StorageAttachmentConstants;
 import com.ruoyi.common.enums.StorageAttachmentRecordType;
@@ -16,23 +24,18 @@
  * @since 2025-05-29
  */
 public interface StorageAttachmentService extends IService<StorageAttachment> {
-    /**
-     * 鏌ヨ閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
-     * @param recordId 鍏宠仈璁板綍id
-     * @param recordType 鍏宠仈璁板綍绫诲瀷
-     * @param fileType 鏂囦欢绫诲瀷
-     * @return 鏂囦欢淇℃伅鍒楄〃
-     */
-    List<StorageAttachment> selectStorageAttachments(Long recordId, StorageAttachmentRecordType recordType, StorageAttachmentConstants fileType);
 
     /**
      * 淇濆瓨閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
-     * @param attachments 鏂囦欢淇℃伅鍒楄〃
-     * @param recordId 绠$悊璁板綍id
-     * @param recordType 鍏宠仈璁板綍绫诲瀷
-     * @param fileType 鏂囦欢绫诲瀷
      */
-    public void saveStorageAttachment(List<StorageAttachment> attachments, Long recordId, StorageAttachmentRecordType recordType, StorageAttachmentConstants fileType);
+    public void saveStorageAttachment(StorageAttachmentDTO storageAttachmentDTO);
+
+    /**
+     * 鍒嗛〉鏌ヨ閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
+     * @param storageAttachmentDTO 鍏宠仈璁板綍淇℃伅
+     * @return 鍒嗛〉缁撴灉
+     */
+    public List<StorageBlobVO> list(StorageAttachmentDTO storageAttachmentDTO);
 
     /**
      * 鍒犻櫎閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
@@ -40,4 +43,11 @@
      * @return 鍒犻櫎缁撴灉
      */
     public int deleteStorageAttachment(StorageAttachment storageAttachment);
+
+    /**
+     * 鎵归噺鍒犻櫎閫氱敤鏂囦欢涓婁紶鐨勯檮浠朵俊鎭�
+     * @param ids 鏂囦欢id鍒楄〃
+     * @return 鍒犻櫎缁撴灉
+     */
+    public int batchDeleteStorageAttachment(List<Long> ids);
 }

--
Gitblit v1.9.3