From 788f13fa7bdd77cc723d22ca744017249febae14 Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Sat, 30 Aug 2025 06:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BusPurchaseDocServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/cailiaoshebei/service/impl/BusPurchaseDocServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/cailiaoshebei/service/impl/BusPurchaseDocServiceImpl.java index 11af841a..7fb9ce1a 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/cailiaoshebei/service/impl/BusPurchaseDocServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/cailiaoshebei/service/impl/BusPurchaseDocServiceImpl.java @@ -210,11 +210,10 @@ public class BusPurchaseDocServiceImpl extends ServiceImpllambdaQuery() - .eq(BusPlanDocAssociation::getProjectId, update.getProjectId()) - .eq(BusPlanDocAssociation::getDocId, update.getId())); - if (CollectionUtil.isNotEmpty(bo.getAssociationList())) { + planDocAssociationService.remove(Wrappers.lambdaQuery() + .eq(BusPlanDocAssociation::getProjectId, update.getProjectId()) + .eq(BusPlanDocAssociation::getDocId, update.getId())); List convert = MapstructUtils.convert(bo.getAssociationList(), BusPlanDocAssociation.class); convert.forEach(item -> { item.setProjectId(update.getProjectId()); @@ -505,6 +504,7 @@ public class BusPurchaseDocServiceImpl extends ServiceImpl