|
@@ -413,6 +413,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
413
|
413
|
QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper<>();
|
414
|
414
|
queryWrapper.eq("phone", taRecommendCustomer.getPhone());
|
415
|
415
|
queryWrapper.eq("building_id",taRecommendCustomer.getBuildingId());
|
|
416
|
+ queryWrapper.eq("org_id", taRecommendCustomer.getOrgId());
|
416
|
417
|
queryWrapper.in("verify_status",CommConstant.VERIFY_AGREE,CommConstant.VERIFY_READY);
|
417
|
418
|
List<TaRecommendCustomer> result = taRecommendCustomerMapper.selectList(queryWrapper);
|
418
|
419
|
if (null != result && result.size() > 0) {
|
|
@@ -486,17 +487,17 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
486
|
487
|
}
|
487
|
488
|
|
488
|
489
|
@Override
|
489
|
|
- public IPage getCustomerList(Integer status,int pageNumber, int pageSize,String building,String name,String tel,String consultName,String consultTel,String entryType,String verifyStatus,Integer sex, String customerType, Integer orgId,List<TaPersonBuilding> taPersonBuildingList,String sceneType){
|
|
490
|
+ public IPage getCustomerList(Integer status,int pageNumber, int pageSize,String building,String name,String tel,String consultName,String consultTel,String entryType,String verifyStatus,Integer sex, String customerType, Integer orgId,List<TaPersonBuilding> taPersonBuildingList,String sceneType, String startCreateDate, String endCreateDate){
|
490
|
491
|
|
491
|
492
|
if (CommConstant.CUTOMER_TYPE_PUBLIC.equals(customerType)) {
|
492
|
493
|
// 公客
|
493
|
494
|
IPage<TaPerson>page = new Page<>(pageNumber,pageSize);
|
494
|
495
|
// 公客就不用 buildingId 进行查询
|
495
|
|
- return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel, entryType, verifyStatus, sex, orgId,consultTel,sceneType, taPersonBuildingList,building);
|
|
496
|
+ return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel, entryType, verifyStatus, sex, orgId,consultTel,sceneType, taPersonBuildingList,building, startCreateDate, endCreateDate);
|
496
|
497
|
} else {
|
497
|
498
|
// 私客
|
498
|
499
|
IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);
|
499
|
|
- return taRecommendCustomerMapper.getCustomerList(page, building, name, tel, consultName, consultTel, entryType, verifyStatus, sex, orgId,status,taPersonBuildingList,sceneType);
|
|
500
|
+ return taRecommendCustomerMapper.getCustomerList(page, building, name, tel, consultName, consultTel, entryType, verifyStatus, sex, orgId,status,taPersonBuildingList,sceneType, startCreateDate, endCreateDate);
|
500
|
501
|
}
|
501
|
502
|
|
502
|
503
|
}
|