|
@@ -520,7 +520,7 @@ FROM
|
520
|
520
|
p.*,
|
521
|
521
|
COUNT(rc.person_id) AS recommendCount
|
522
|
522
|
from ta_channel_person tch
|
523
|
|
- left join ta_person p on tch.person_id = p.person_id and p.person_type = 'estate agent'
|
|
523
|
+ left join ta_person p on tch.person_id = p.person_id and p.person_type = 'estate agent' and tch.status = 1
|
524
|
524
|
LEFT JOIN ta_recommend_customer rc ON p.person_id = rc.person_id
|
525
|
525
|
<where>
|
526
|
526
|
<if test="name !=null and name !=''">
|