傅行帆 5 vuotta sitten
vanhempi
commit
26fc885b71

+ 1
- 1
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml Näytä tiedosto

1976
         left join ta_person a on t.person_id = a.person_id
1976
         left join ta_person a on t.person_id = a.person_id
1977
         left join ta_person_from_record b on a.person_id = b.person_id and b.org_id = #{orgId} and b.is_first_time =1
1977
         left join ta_person_from_record b on a.person_id = b.person_id and b.org_id = #{orgId} and b.is_first_time =1
1978
         left join td_wx_dict b1 on b.scene_id = b1.scene_id
1978
         left join td_wx_dict b1 on b.scene_id = b1.scene_id
1979
-        left join ta_recommend_customer c on c.person_id = t.person_id
1979
+        left join ta_recommend_customer c on c.person_id = t.person_id and c.realty_consultant is not null
1980
         LEFT JOIN ta_user d ON c.realty_consultant = d.user_id
1980
         LEFT JOIN ta_user d ON c.realty_consultant = d.user_id
1981
         LEFT JOIN ta_person e ON t.share_person_id = e.person_id
1981
         LEFT JOIN ta_person e ON t.share_person_id = e.person_id
1982
         WHERE t.target_type in ('dynamic','h5','help','live', 'group','activity') and t.org_id =
1982
         WHERE t.target_type in ('dynamic','h5','help','live', 'group','activity') and t.org_id =