Commit 814acb83aec7764358ffd20b7f57d20f22c93bbd
1 parent
8ff710e4
fix:跟进记录分页不显示商机
Showing
1 changed file
with
2 additions
and
2 deletions
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 { | @@ -94,7 +94,7 @@ public class CrmFollowUpRecordController { | ||
| 94 | record.setBusinesses(new ArrayList<>()).setContacts(new ArrayList<>()); | 94 | record.setBusinesses(new ArrayList<>()).setContacts(new ArrayList<>()); |
| 95 | record.getContactIds().forEach(id -> MapUtils.findAndThen(contactMap, id, contact -> | 95 | record.getContactIds().forEach(id -> MapUtils.findAndThen(contactMap, id, contact -> |
| 96 | record.getContacts().add(new CrmBusinessRespVO().setId(contact.getId()).setName(contact.getName())))); | 96 | record.getContacts().add(new CrmBusinessRespVO().setId(contact.getId()).setName(contact.getName())))); |
| 97 | - record.getContactIds().forEach(id -> MapUtils.findAndThen(businessMap, id, business -> | 97 | + record.getBusinessIds().forEach(id -> MapUtils.findAndThen(businessMap, id, business -> |
| 98 | record.getBusinesses().add(new CrmBusinessRespVO().setId(business.getId()).setName(business.getName())))); | 98 | record.getBusinesses().add(new CrmBusinessRespVO().setId(business.getId()).setName(business.getName())))); |
| 99 | // 2.2 设置用户信息 | 99 | // 2.2 设置用户信息 |
| 100 | MapUtils.findAndThen(userMap, Long.valueOf(record.getCreator()), user -> record.setCreatorName(user.getNickname())); | 100 | MapUtils.findAndThen(userMap, Long.valueOf(record.getCreator()), user -> record.setCreatorName(user.getNickname())); |
| @@ -102,4 +102,4 @@ public class CrmFollowUpRecordController { | @@ -102,4 +102,4 @@ public class CrmFollowUpRecordController { | ||
| 102 | return success(voPageResult); | 102 | return success(voPageResult); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | -} | ||
| 106 | \ No newline at end of file | 105 | \ No newline at end of file |
| 106 | +} |