|
@@ -480,55 +480,17 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
480
|
480
|
}
|
481
|
481
|
|
482
|
482
|
@Override
|
483
|
|
- 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){
|
|
483
|
+ 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){
|
484
|
484
|
|
485
|
485
|
if (CommConstant.CUTOMER_TYPE_PUBLIC.equals(customerType)) {
|
486
|
|
-
|
487
|
|
- /**
|
488
|
|
- * <if test="buildingId != null">
|
489
|
|
- * ,(select tpp.name from ta_share_person_from tspf left join ta_person tpp on tspf.share_person = tpp.person_id where tspf.building_id = #{buildingId} and tspf.is_first_time = 1) as sharePersonName
|
490
|
|
- * </if>
|
491
|
|
- */
|
492
|
|
-
|
493
|
|
- /**
|
494
|
|
- * SELECT
|
495
|
|
- * b.*
|
496
|
|
- * FROM
|
497
|
|
- * ta_person b
|
498
|
|
- * <where>
|
499
|
|
- * b.status > 0
|
500
|
|
- * AND IFNULL(b.person_type, '') in ('estate agent', 'customer')
|
501
|
|
- * <if test="name != null and name !=''">
|
502
|
|
- * and b.nickname like CONCAT('%',#{name}, '%')
|
503
|
|
- * </if>
|
504
|
|
- * <if test="tel != null and tel!=''">
|
505
|
|
- * and b.phone like CONCAT('%',#{tel}, '%')
|
506
|
|
- * </if>
|
507
|
|
- * <if test="entryType != null and entryType !=''">
|
508
|
|
- * and b.entry_type = #{entryType}
|
509
|
|
- * </if>
|
510
|
|
- * <if test="sex != null and sex !=''">
|
511
|
|
- * and b.sex = #{sex}
|
512
|
|
- * </if>
|
513
|
|
- * <if test="orgId != null">
|
514
|
|
- * and b.org_id = #{orgId}
|
515
|
|
- * </if>
|
516
|
|
- * <if test="consultTel != null and consultTel !=''">
|
517
|
|
- * and b.tel like CONCAT('%',#{consultTel}, '%')
|
518
|
|
- * </if>
|
519
|
|
- * and NOT EXISTS ( select * from ta_recommend_customer a where a.recommend_person = b.person_id)
|
520
|
|
- * </where>
|
521
|
|
- * order by b.create_date desc
|
522
|
|
- */
|
523
|
|
-
|
524
|
486
|
// 公客
|
525
|
487
|
IPage<TaPerson>page = new Page<>(pageNumber,pageSize);
|
526
|
488
|
// 公客就不用 buildingId 进行查询
|
527
|
|
- return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel, entryType, verifyStatus, sex, orgId,consultTel);
|
|
489
|
+ return taRecommendCustomerMapper.getPublicCustomerList(page,name, tel, entryType, verifyStatus, sex, orgId,consultTel,sceneType);
|
528
|
490
|
} else {
|
529
|
491
|
// 私客
|
530
|
492
|
IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);
|
531
|
|
- return taRecommendCustomerMapper.getCustomerList(page, building, name, tel, consultName, consultTel, entryType, verifyStatus, sex, orgId,status,taPersonBuildingList);
|
|
493
|
+ return taRecommendCustomerMapper.getCustomerList(page, building, name, tel, consultName, consultTel, entryType, verifyStatus, sex, orgId,status,taPersonBuildingList,sceneType);
|
532
|
494
|
}
|
533
|
495
|
|
534
|
496
|
}
|