From 8e8a900cdd246f206054b98943f494b275c7332e Mon Sep 17 00:00:00 2001 From: lijiarao Date: Mon, 10 Jan 2022 09:06:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=97=A0=E4=BC=9A=E8=AE=AE=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E4=BA=BA=E6=97=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BC=9A=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meeting/service/impl/PayMeetingServiceImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/service/impl/PayMeetingServiceImpl.java b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/service/impl/PayMeetingServiceImpl.java index 66411089..925c38b2 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/meeting/service/impl/PayMeetingServiceImpl.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/meeting/service/impl/PayMeetingServiceImpl.java @@ -289,8 +289,12 @@ public class PayMeetingServiceImpl extends ServiceImpl addMeetingContactsList = new ArrayList<>(); for (PayMeetingContacts payMeetingContacts : meetingContactsList) { String meetingContactsId = payMeetingContacts.getMeetingContactsId(); + if (StringUtils.isBlank(meetingContactsId)) { + continue; + } LoginUser loginUser = sysBaseAPI.getUserById(meetingContactsId); if (loginUser == null) { throw new JeroBootException("会议联系人不存在"); @@ -298,16 +302,17 @@ public class PayMeetingServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(PayMeetingContacts::getMeetingId, meetingId); meetingContactsService.remove(queryWrapper); - meetingContactsList.forEach(meetingContacts -> + addMeetingContactsList.forEach(meetingContacts -> meetingContacts.setMeetingId(meetingId) ); - meetingContactsService.saveBatch(meetingContactsList); + meetingContactsService.saveBatch(addMeetingContactsList); } }