From 464fe41610a39c3a06f070d5a01c930134ff0163 Mon Sep 17 00:00:00 2001
From: zf <1603559716@qq.com>
Date: Wed, 30 Aug 2023 09:05:05 +0800
Subject: [PATCH] 检查统计
---
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