From cc3ddfda6bfb9a2aa0cd55073e8864320daf1f20 Mon Sep 17 00:00:00 2001 From: zhangfeng <1603559716@qq.com> Date: 星期四, 27 七月 2023 14:13:38 +0800 Subject: [PATCH] bug修改 --- 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