张延森 vor 5 Jahren
Ursprung
Commit
e44aa2774c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml Datei anzeigen

170
         FROM
170
         FROM
171
         ta_recommend_customer a
171
         ta_recommend_customer a
172
         LEFT JOIN ta_person b ON a.realty_consultant = b.person_id
172
         LEFT JOIN ta_person b ON a.realty_consultant = b.person_id
173
-        LEFT JOIN ta_person c on a.recommend_person = c.person_id
174
         LEFT JOIN ta_user d on d.user_id = a.realty_consultant
173
         LEFT JOIN ta_user d on d.user_id = a.realty_consultant
175
         LEFT JOIN ta_person_from_record p ON a.person_id = p.person_id AND p.is_first_time = 1
174
         LEFT JOIN ta_person_from_record p ON a.person_id = p.person_id AND p.is_first_time = 1
176
         <if test="orgId != null">
175
         <if test="orgId != null">
177
             and p.org_id =  #{orgId}
176
             and p.org_id =  #{orgId}
178
         </if>
177
         </if>
178
+        LEFT JOIN ta_person c on p.share_person_id = c.person_id
179
         LEFT JOIN td_wx_dict w ON p.scene_id = w.scene_id
179
         LEFT JOIN td_wx_dict w ON p.scene_id = w.scene_id
180
         <where>
180
         <where>
181
             a.status > 0
181
             a.status > 0