|
@@ -137,6 +137,9 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
137
|
137
|
@Autowired
|
138
|
138
|
private CustomerSignatoryMapper customerSignatoryMapper;
|
139
|
139
|
|
|
140
|
+ @Autowired
|
|
141
|
+ private TaBuildingApartmentMapper taBuildingApartmentMapper;
|
|
142
|
+
|
140
|
143
|
@Override
|
141
|
144
|
public ResponseBean getMyCustList(String openid, String keywords, int pageNumber, int pageSize) {
|
142
|
145
|
List<TaPerson> taPersons = getPersonsByOpenId(openid);
|
|
@@ -467,6 +470,14 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
467
|
470
|
// 查询出此楼盘下的职业顾问
|
468
|
471
|
IPage<TaRecommendCustomerPO> page = new Page<>(pageNumber,pageSize);
|
469
|
472
|
IPage<TaRecommendCustomerPO> result = taRecommendCustomerMapper.getMarkingCustList(page, keywords,buildingId);
|
|
473
|
+ List<TaRecommendCustomerPO> records = result.getRecords();
|
|
474
|
+ records.forEach(e -> {
|
|
475
|
+ TaPerson recommendPerson = taPersonMapper.selectById(e.getRecommendPerson());
|
|
476
|
+ if (null != recommendPerson) {
|
|
477
|
+ e.setRecommendPersonName(recommendPerson.getName());
|
|
478
|
+ e.setRecommendPersonPhone(recommendPerson.getPhone());
|
|
479
|
+ }
|
|
480
|
+ });
|
470
|
481
|
return ResponseBean.success(result);
|
471
|
482
|
}
|
472
|
483
|
|
|
@@ -713,6 +724,10 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
713
|
724
|
LambdaQueryWrapper<CustomerSignatory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
714
|
725
|
lambdaQueryWrapper.eq(CustomerSignatory::getCustomerId,taRecommendCustomer.getCustomerId());
|
715
|
726
|
List<CustomerSignatory> customerSignatories = customerSignatoryMapper.selectList(lambdaQueryWrapper);
|
|
727
|
+ customerSignatories.forEach(e -> {
|
|
728
|
+ TaBuildingApartment taBuildingApartment = taBuildingApartmentMapper.selectById(e.getHouseType());
|
|
729
|
+ e.setBuildingApartment(taBuildingApartment);
|
|
730
|
+ });
|
716
|
731
|
taRecommendCustomerVO.setCustomerSignatory(customerSignatories);
|
717
|
732
|
}
|
718
|
733
|
|