魏超 5 yıl önce
ebeveyn
işleme
c1497b957f

+ 1
- 1
src/main/resources/mapper/TaPersonVisitRecordMapper.xml Dosyayı Görüntüle

@@ -123,7 +123,7 @@
123 123
 
124 124
     <select id="getWxActivityVisitRecordList" resultType="com.huiju.estateagents.entity.TaPersonVisitRecord">
125 125
         SELECT
126
-            t.share_from_id, t.share_person, t.share_person_type, t.person_id, t.target_type, t.target_id, t.create_date as visit_time, t.org_id ,building_id, t.status, t.is_first_time,
126
+            t.share_from_id, t.share_person as consultant_id, t.share_person_type, t.person_id, t.target_type, t.target_id, t.create_date as visit_time, t.org_id ,building_id, t.status, t.is_first_time,
127 127
 	        p.`name` as user_name,
128 128
 	        p.`nickname` as nickname,
129 129
 	        p.avatarurl

+ 5
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml Dosyayı Görüntüle

@@ -633,11 +633,14 @@ FROM
633 633
         FROM
634 634
         ta_recommend_customer a
635 635
         LEFT JOIN ta_person b ON a.realty_consultant = b.person_id
636
-        left join ta_person c on a.realty_consultant = c.user_id
636
+        LEFT JOIN ta_person c ON a.realty_consultant = c.user_id
637
+        LEFT JOIN ta_user d on d.user_id = a.realty_consultant
638
+        LEFT JOIN ta_person_from_record p ON a.person_id = p.person_id AND p.is_first_time = 1
637 639
         <where>
638 640
             a.status > 0
639 641
             and a.verify_status = 1
640
-            and realty_consultant is not null
642
+            and a.realty_consultant is not null
643
+            and a.realty_consultant != ''
641 644
             <if test="orgId != null">
642 645
                 and a.org_id = #{orgId}
643 646
             </if>