|
@@ -526,7 +526,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
526
|
526
|
|
527
|
527
|
|
528
|
528
|
@Override
|
529
|
|
- public TaRecommendCustomer getCustomerDetail(String customerId,int pageNumber, int pageSize){
|
|
529
|
+ public TaRecommendCustomer getCustomerDetail(String customerId,int pageNumber, int pageSize,List<TaPersonBuilding> taPersonBuildingList){
|
530
|
530
|
String personId = taRecommendCustomerMapper.getCustomerById(customerId).getPersonId();
|
531
|
531
|
TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.getCustomerDetail(customerId,personId);
|
532
|
532
|
TaPerson person = taPersonMapper.selectById(personId);
|
|
@@ -575,7 +575,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
575
|
575
|
taPersonVisitRecordIPage.setRecords(records);
|
576
|
576
|
taRecommendCustomer.setVisitRecords(taPersonVisitRecordIPage);
|
577
|
577
|
taRecommendCustomer.setVisitTimes(taPersonVisitRecordIPage.getRecords().size());
|
578
|
|
- taRecommendCustomer.setIntentions(taRecommendCustomerMapper.getCustomerIntentions(personId));
|
|
578
|
+ taRecommendCustomer.setIntentions(taRecommendCustomerMapper.getCustomerIntentions(personId,taPersonBuildingList));
|
579
|
579
|
Map<String,String>geoInfo = new HashMap<>();
|
580
|
580
|
geoInfo.put("provience",person.getProvince());
|
581
|
581
|
geoInfo.put("country",person.getCountry());
|
|
@@ -616,7 +616,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
616
|
616
|
}
|
617
|
617
|
|
618
|
618
|
@Override
|
619
|
|
- public TaPerson getPublicCustomerDetail(String personId,int pageNumber, int pageSize){
|
|
619
|
+ public TaPerson getPublicCustomerDetail(String personId,int pageNumber, int pageSize,List<TaPersonBuilding> taPersonBuildingList){
|
620
|
620
|
TaPerson taRecommendCustomer = taPersonMapper.getById(personId);
|
621
|
621
|
if(!StringUtils.isEmpty(personId)){
|
622
|
622
|
IPage<TaPersonVisitRecord>page = new Page<>(pageNumber,pageSize);
|
|
@@ -663,7 +663,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
663
|
663
|
taPersonVisitRecordIPage.setRecords(records);
|
664
|
664
|
taRecommendCustomer.setVisitRecords(taPersonVisitRecordIPage);
|
665
|
665
|
taRecommendCustomer.setVisitTimes(taPersonVisitRecordIPage.getRecords().size());
|
666
|
|
- taRecommendCustomer.setIntentions(taRecommendCustomerMapper.getCustomerIntentions(personId));
|
|
666
|
+ taRecommendCustomer.setIntentions(taRecommendCustomerMapper.getCustomerIntentions(personId,taPersonBuildingList));
|
667
|
667
|
taRecommendCustomer.setDuration(taPersonVisitRecordMapper.getDurationByPersonId(personId));
|
668
|
668
|
taRecommendCustomer.setVisitTime(taPersonVisitRecordMapper.getFirstVisitTimeByPersonId(personId));
|
669
|
669
|
TdCity city = cityMapper.selectById(taRecommendCustomer.getCity());
|
|
@@ -684,7 +684,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
684
|
684
|
}
|
685
|
685
|
|
686
|
686
|
@Override
|
687
|
|
- public IPage<TaRecommendCustomer>getCustomersIRecommended(int pageNumber, int pageSize,String customerId,Integer orgId){
|
|
687
|
+ public IPage<TaRecommendCustomer>getCustomersIRecommended(int pageNumber, int pageSize,String customerId,Integer orgId,List<TaPersonBuilding> taPersonBuildingList){
|
688
|
688
|
|
689
|
689
|
QueryWrapper<TaRecommendCustomer>queryWrapper = new QueryWrapper<>();
|
690
|
690
|
// todo
|
|
@@ -694,7 +694,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
694
|
694
|
//// queryWrapper.eq("building_id",building);
|
695
|
695
|
// queryWrapper.eq("status", CommConstant.VERIFY_AGREE);
|
696
|
696
|
// queryWrapper.eq("org_id", orgId);
|
697
|
|
- return taRecommendCustomerMapper.getCustomersIRecommended(page,customerId,CommConstant.STATUS_NORMAL,orgId);
|
|
697
|
+ return taRecommendCustomerMapper.getCustomersIRecommended(page,customerId,CommConstant.STATUS_NORMAL,orgId,taPersonBuildingList);
|
698
|
698
|
}
|
699
|
699
|
|
700
|
700
|
@Override
|