From e11706ad56843610601c14aa15868c4c3b908548 Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期三, 12 八月 2026 16:55:45 +0800
Subject: [PATCH] feat: 新增部门和岗位模块的Excel导入及导出模板功能
---
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/util/storage/StorageFileUtil.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/util/storage/StorageFileUtil.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/util/storage/StorageFileUtil.java
index abc79c1..111bf6d 100644
--- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/util/storage/StorageFileUtil.java
+++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/util/storage/StorageFileUtil.java
@@ -41,7 +41,7 @@
* - token浣跨敤娆℃暟鎺у埗锛圧edis锛�
* - 鍥剧墖鍘嬬缉
*
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
*/
@Component
@RequiredArgsConstructor
@@ -104,21 +104,20 @@
throw new IllegalArgumentException("鍏宠仈璁板綍id涓嶈兘涓虹┖");
}
- // 鍒犻櫎鏃ч檮浠朵俊鎭�
+ // 鍙垹闄ゆ棫鐨勯檮浠跺叧鑱旇褰曪紝淇濈暀 blob 璁板綍锛堟枃浠舵湰韬笉鍒犻櫎锛�
if (application == null || application.trim().isEmpty()) {
for (SystemStorageAttachmentSaveReqVO.BlobItem item : blobItems) {
String itemApp = item.getApplication();
if (itemApp == null || itemApp.trim().isEmpty()) {
throw new IllegalArgumentException("鏂囦欢鐢ㄩ�斾笉鑳戒负绌�");
}
- deleteStorageAttachmentsByApplicationAndRecordTypeAndRecordId(itemApp, recordType.getType(), recordId);
+ storageAttachmentMapper.deleteByApplicationAndRecordTypeAndRecordId(itemApp, recordType.getType(), recordId);
}
} else {
- deleteStorageAttachmentsByApplicationAndRecordTypeAndRecordId(application, recordType.getType(), recordId);
+ storageAttachmentMapper.deleteByApplicationAndRecordTypeAndRecordId(application, recordType.getType(), recordId);
}
if (CollUtil.isEmpty(blobItems)) {
- deleteStorageAttachmentsByRecordTypeAndRecordId(recordType.getType(), recordId);
return;
}
--
Gitblit v1.9.3