@@ -116,7 +116,7 @@ FROM
c.building_name as intentionName
FROM
ta_recommend_customer a
- LEFT JOIN ta_person b ON a.realty_consultant = b.person_id
+ LEFT JOIN ta_person b ON (a.realty_consultant = b.person_id or a.realty_consultant = b.user_id)
LEFT JOIN ta_building c ON a.building_id = c.building_id
<where>
a.status > 0