From e10c196ff7348a4461e8facee10a208779244ece Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期三, 30 九月 2026 15:33:30 +0800
Subject: [PATCH] 宁夏万通需求:出库单行支持主/辅单位录入;考勤节假日配置改为时间段;物料型号维护;设备批量删除;来料检验默认方案解析

---
 yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/storage/StorageAttachmentApiImpl.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/storage/StorageAttachmentApiImpl.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/storage/StorageAttachmentApiImpl.java
index 914c89d..919a93a 100644
--- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/storage/StorageAttachmentApiImpl.java
+++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/storage/StorageAttachmentApiImpl.java
@@ -38,8 +38,24 @@
     }
 
     @Override
+    public void updateAttachments(String application, String recordType, Long recordId, List<Long> newBlobIds) {
+        if (newBlobIds == null) {
+            return;
+        }
+        if (newBlobIds.isEmpty()) {
+            // 娓呯┖鎵�鏈夐檮浠�
+            systemStorageAttachmentService.deleteAttachmentsByApplicationAndRecordTypeAndRecordId(
+                    application != null ? application : "file", recordType, recordId);
+            return;
+        }
+        // 鍏ㄩ噺鏇挎崲锛歜indAttachments 鍐呴儴鍏堝垹鍚庢彃锛岀洿鎺ヤ紶鍏ュ叏閮ㄦ柊 blobId 鍗冲彲
+        bindAttachments(application, recordType, recordId, newBlobIds);
+    }
+
+    @Override
     public List<StorageBlobRespDTO> listAttachments(String recordType, Long recordId) {
         SystemStorageAttachmentListReqVO reqVO = new SystemStorageAttachmentListReqVO();
+        reqVO.setApplication("file");
         reqVO.setRecordType(recordType);
         reqVO.setRecordId(recordId);
         List<SystemStorageBlobRespVO> list = systemStorageAttachmentService.listAttachments(reqVO);

--
Gitblit v1.9.3