From 2f20856ea3ca6f2f238ba66252164687f47fcd7e Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 21 四月 2026 17:24:11 +0800
Subject: [PATCH] chore(deps): 更新 mybatis-plus 版本到 3.5.15
---
src/main/java/com/ruoyi/inspectiontask/service/impl/QrCodeScanRecordServiceImpl.java | 57 +++++++++++++++++++++++++++++----------------------------
1 files changed, 29 insertions(+), 28 deletions(-)
diff --git a/src/main/java/com/ruoyi/inspectiontask/service/impl/QrCodeScanRecordServiceImpl.java b/src/main/java/com/ruoyi/inspectiontask/service/impl/QrCodeScanRecordServiceImpl.java
index 00ece03..d43513a 100644
--- a/src/main/java/com/ruoyi/inspectiontask/service/impl/QrCodeScanRecordServiceImpl.java
+++ b/src/main/java/com/ruoyi/inspectiontask/service/impl/QrCodeScanRecordServiceImpl.java
@@ -5,7 +5,6 @@
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.ruoyi.basic.dto.StorageBlobDTO;
import com.ruoyi.basic.mapper.StorageAttachmentMapper;
import com.ruoyi.basic.mapper.StorageBlobMapper;
import com.ruoyi.basic.pojo.StorageAttachment;
@@ -127,23 +126,24 @@
});
// 6.2 璁剧疆闄勪欢淇℃伅
- dto.setStorageBlobDTO(
- Optional.ofNullable(attachmentsMap.get(record.getId()))
- .orElse(Collections.emptyList())
- .stream()
- .map(att -> {
- StorageBlobDTO blobDTO = new StorageBlobDTO();
- Optional.ofNullable(blobMap.get(att.getStorageBlobId()))
- .ifPresent(blob -> {
- BeanUtils.copyProperties(blob, blobDTO);
- blobDTO.setUrl(minioUtils.getPreviewUrls(blob.getBucketFilename(), blob.getBucketName(), true));
- blobDTO.setDownloadUrl(minioUtils.getDownloadUrls(blob.getBucketFilename(),blob.getBucketName(),blob.getOriginalFilename(),true));
- });
- return blobDTO;
- })
- .filter(blobDTO -> blobDTO.getId() != null) // 杩囨护鏃犳晥闄勪欢
- .collect(Collectors.toList())
- );
+ // todo fileChange
+// dto.setStorageBlobDTO(
+// Optional.ofNullable(attachmentsMap.get(record.getId()))
+// .orElse(Collections.emptyList())
+// .stream()
+// .map(att -> {
+// StorageBlobDTO blobDTO = new StorageBlobDTO();
+// Optional.ofNullable(blobMap.get(att.getStorageBlobId()))
+// .ifPresent(blob -> {
+// BeanUtils.copyProperties(blob, blobDTO);
+// blobDTO.setUrl(minioUtils.getPreviewUrls(blob.getBucketFilename(), blob.getBucketName(), true));
+// blobDTO.setDownloadUrl(minioUtils.getDownloadUrls(blob.getBucketFilename(),blob.getBucketName(),blob.getOriginalFilename(),true));
+// });
+// return blobDTO;
+// })
+// .filter(blobDTO -> blobDTO.getId() != null) // 杩囨护鏃犳晥闄勪欢
+// .collect(Collectors.toList())
+// );
return dto;
}).collect(Collectors.toList());
@@ -166,18 +166,19 @@
i = qrCodeScanRecordMapper.updateById(qrCodeScanRecord);
}
- if (qrCodeScanRecordDto.getStorageBlobDTO() != null && !qrCodeScanRecordDto.getStorageBlobDTO().isEmpty()) {
+ if (qrCodeScanRecordDto.getStorageBlobVO() != null && !qrCodeScanRecordDto.getStorageBlobVO().isEmpty()) {
List<StorageAttachment> attachments = new ArrayList<>();
- for (StorageBlobDTO storageBlobDTO : qrCodeScanRecordDto.getStorageBlobDTO()) {
- StorageAttachment storageAttachment = new StorageAttachment(
- StorageAttachmentFile,
- (long) QrCodeScanRecords.ordinal(),
- qrCodeScanRecord.getId()
- );
- storageAttachment.setStorageBlobDTO(storageBlobDTO);
- attachments.add(storageAttachment);
- }
+ // todo fileChange
+// for (StorageBlobDTO storageBlobDTO : qrCodeScanRecordDto.getStorageBlobDTO()) {
+// StorageAttachment storageAttachment = new StorageAttachment(
+// StorageAttachmentFile,
+// (long) QrCodeScanRecords.ordinal(),
+// qrCodeScanRecord.getId()
+// );
+// storageAttachment.setStorageBlobDTO(storageBlobDTO);
+// attachments.add(storageAttachment);
+// }
storageAttachmentService.saveStorageAttachment(attachments, qrCodeScanRecord.getId(), QrCodeScanRecords, StorageAttachmentFile);
}
return i;
--
Gitblit v1.9.3