From c94f3c34d1c2c5a1d5e7010ab1e3cd0aded3cfac Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期二, 15 八月 2023 09:40:37 +0800
Subject: [PATCH] Merge branch 'zya'
---
src/main/java/com/gk/hotwork/Service/ServiceImpl/AttachmentInfoServiceImpl.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/gk/hotwork/Service/ServiceImpl/AttachmentInfoServiceImpl.java b/src/main/java/com/gk/hotwork/Service/ServiceImpl/AttachmentInfoServiceImpl.java
index 4692a03..250ef31 100644
--- a/src/main/java/com/gk/hotwork/Service/ServiceImpl/AttachmentInfoServiceImpl.java
+++ b/src/main/java/com/gk/hotwork/Service/ServiceImpl/AttachmentInfoServiceImpl.java
@@ -48,7 +48,7 @@
@Override
public List<AttachmentInfo> findByIds(List<Long> ids) {
return attachmentInfoMapper.selectList(new LambdaQueryWrapper<AttachmentInfo>()
- .in(AttachmentInfo::getBusinessId,ids)
+ .in(AttachmentInfo::getId,ids)
.eq(AttachmentInfo::getDelFlag,0));
}
@@ -79,5 +79,10 @@
public void updateBusinessIdBatch(List<AttachmentInfo> attachmentList) {
attachmentInfoMapper.updateBusinessIdBatch(attachmentList);
}
+
+ @Override
+ public void deleteByBusinessId(Long businessId) {
+ attachmentInfoMapper.deleteByBusinessId(businessId);
+ }
}
--
Gitblit v1.9.2