傅行帆 3 years ago
parent
commit
dcc8b85e1c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 2
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

@@ -180,7 +180,7 @@ FROM
180 180
 --         LEFT JOIN td_wx_dict w ON p.scene_id = w.scene_id
181 181
         LEFT JOIN td_wx_dict w ON p.scene_id = w.scene_id
182 182
         LEFT JOIN ta_person p2 ON a.person_id = p2.person_id
183
-        LEFT JOIN ta_person c ON p2.recommend_person = c.person_id
183
+        LEFT JOIN ta_person c ON a.recommend_person = c.person_id
184 184
         LEFT JOIN ta_building t2 ON a.building_id = t2.building_id
185 185
         <where>
186 186
             a.status > 0
@@ -264,7 +264,7 @@ FROM
264 264
         ta_recommend_customer t
265 265
         LEFT JOIN ta_building t2 ON t.building_id = t2.building_id
266 266
         LEFT JOIN ta_person t6 ON t.person_id = t6.person_id
267
-        LEFT JOIN ta_person t3 ON t6.recommend_person = t3.person_id
267
+        LEFT JOIN ta_person t3 ON t.recommend_person = t3.person_id
268 268
         LEFT JOIN ta_person_from_record t4 ON t.person_id = t4.person_id AND t4.is_first_time = 1 AND t4.org_id = #{orgId}
269 269
         LEFT JOIN td_wx_dict t5 ON t4.scene_id = t5.scene_id
270 270
         <where>