From 10bf499726acea50b695d215f7f07d9e2cde5bec Mon Sep 17 00:00:00 2001
From: huangzhen <867217663@qq.com>
Date: 星期三, 13 九月 2023 16:10:42 +0800
Subject: [PATCH] 文件功能批量通过id进行更新
---
ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java | 4 ++--
ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java b/ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java
index 555fa15..ea3e4c6 100644
--- a/ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java
+++ b/ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java
@@ -32,5 +32,5 @@
void downloadById(HttpServletResponse response, HttpServletRequest request, Long id);
- void saveBatch(List<AttachmentInfo> attachmentInfo);
+ void updateBatchById(List<AttachmentInfo> attachmentInfo);
}
diff --git a/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java b/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java
index b0074bb..7db9141 100644
--- a/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java
+++ b/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java
@@ -403,8 +403,8 @@
}
@Override
- public void saveBatch(List<AttachmentInfo> attachmentInfo) {
- boolean saveBatch = attachmentInfoService.saveBatch(attachmentInfo);
+ public void updateBatchById(List<AttachmentInfo> attachmentInfo) {
+ boolean saveBatch = attachmentInfoService.updateBatchById(attachmentInfo);
if (!saveBatch)
throw new ServiceException("文件批量保存失败");
}
--
Gitblit v1.9.2