From 395f924baaf24f421eb378f3730b28acaefd027c Mon Sep 17 00:00:00 2001
From: zf <1603559716@qq.com>
Date: Thu, 14 Sep 2023 16:01:22 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/swspkmas into zf1
---
ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentInfoServiceImpl.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentInfoServiceImpl.java b/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentInfoServiceImpl.java
index 6e56f53..d3d0329 100644
--- a/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentInfoServiceImpl.java
+++ b/ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentInfoServiceImpl.java
@@ -58,7 +58,7 @@
AttachmentInfo attachmentInfo = new AttachmentInfo();
attachmentInfo.setId(id);
attachmentInfo.setUpdateTime(new Date());
- //attachmentInfo.setUpdateBy(SecurityUtils.getUsername());
+ attachmentInfo.setUpdateBy(SecurityUtils.getUsername());
attachmentInfo.setDelFlag(1);
attachmentInfoMapper.updateById(attachmentInfo);
}
@@ -84,5 +84,12 @@
public void deleteByBusinessId(Long businessId) {
attachmentInfoMapper.deleteByBusinessId(businessId);
}
+
+ @Override
+ public List<AttachmentInfo> findByKeys(List<String> keys) {
+ return attachmentInfoMapper.selectList(new LambdaQueryWrapper<AttachmentInfo>()
+ .in(AttachmentInfo::getFileKey,keys)
+ .eq(AttachmentInfo::getDelFlag,0));
+ }
}
--
Gitblit v1.9.2