From 9ca0dc6e7833715b875cc9b6b91d5c497b2bae8b Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期三, 30 八月 2023 09:05:45 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/hazardInvestigationSystem into zf --- 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