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 c36c572e5..7f25fe6f0 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 +}