From 814acb83aec7764358ffd20b7f57d20f22c93bbd Mon Sep 17 00:00:00 2001 From: zhanhong <283456800@qq.com> Date: Fri, 1 Mar 2024 09:28:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B7=9F=E8=BF=9B=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=95=86=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/followup/CrmFollowUpRecordController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/followup/CrmFollowUpRecordController.java b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/followup/CrmFollowUpRecordController.java index 64026f15d..3f9e8cfeb 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/followup/CrmFollowUpRecordController.java +++ b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/followup/CrmFollowUpRecordController.java @@ -94,7 +94,7 @@ public class CrmFollowUpRecordController { record.setBusinesses(new ArrayList<>()).setContacts(new ArrayList<>()); record.getContactIds().forEach(id -> MapUtils.findAndThen(contactMap, id, contact -> record.getContacts().add(new CrmBusinessRespVO().setId(contact.getId()).setName(contact.getName())))); - record.getContactIds().forEach(id -> MapUtils.findAndThen(businessMap, id, business -> + record.getBusinessIds().forEach(id -> MapUtils.findAndThen(businessMap, id, business -> record.getBusinesses().add(new CrmBusinessRespVO().setId(business.getId()).setName(business.getName())))); // 2.2 设置用户信息 MapUtils.findAndThen(userMap, Long.valueOf(record.getCreator()), user -> record.setCreatorName(user.getNickname())); @@ -102,4 +102,4 @@ public class CrmFollowUpRecordController { return success(voPageResult); } -} \ No newline at end of file +}