Sfoglia il codice sorgente

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

傅行帆 5 anni fa
parent
commit
dfbefda538
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

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

@@ -247,7 +247,7 @@ FROM
247 247
         ( IFNULL( b.NAME, '' ) != '', b.NAME, b.nickname ) AS sharePersonName
248 248
         FROM
249 249
         ta_person b
250
-        LEFT JOIN ta_person_from_record r ON r.share_person_id = b.person_id
250
+        LEFT JOIN ta_person_from_record r ON r.share_person_id = b.person_id AND r.is_first_time = 1 and r.org_id = #{orgId}
251 251
         LEFT JOIN td_wx_dict d ON r.scene_id = d.scene_id
252 252
         <where>
253 253
             b.status > 0
@@ -565,7 +565,7 @@ FROM
565 565
                 and b.nickname like CONCAT('%',#{name}, '%')
566 566
             </if>
567 567
             <if test="buildingId != null and buildingId !=''">
568
-                AND r.building_id = #{buildingId}
568
+                AND b.building_id = #{buildingId}
569 569
             </if>
570 570
             <if test="personBuildingList != null and personBuildingList.size > 0">
571 571
                 AND r.building_id in