魏超 5 years ago
parent
commit
d1fb6748ff

+ 1
- 1
src/main/resources/mapper/TaChannelMapper.xml View File

55
         ta_channel c
55
         ta_channel c
56
         LEFT JOIN ta_channel_person cp ON c.channel_id = cp.channel_id and cp.`status` = 1
56
         LEFT JOIN ta_channel_person cp ON c.channel_id = cp.channel_id and cp.`status` = 1
57
         LEFT JOIN ta_person t on cp.person_id = t.person_id and t.person_type = 'estate agent'
57
         LEFT JOIN ta_person t on cp.person_id = t.person_id and t.person_type = 'estate agent'
58
-        LEFT JOIN ta_recommend_customer rc ON t.person_id = rc.recommend_person AND rc.verify_status = 1 AND rc.`status` = 1
58
+        LEFT JOIN ta_recommend_customer rc ON t.person_id = rc.recommend_person AND rc.verify_status = 1
59
         <where>
59
         <where>
60
             <if test="channelId != null and channelId != ''">
60
             <if test="channelId != null and channelId != ''">
61
                 c.channel_id = #{channelId}
61
                 c.channel_id = #{channelId}

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

513
         ta_recommend_customer tarc
513
         ta_recommend_customer tarc
514
         WHERE
514
         WHERE
515
         tarc.recommend_person = a.person_id
515
         tarc.recommend_person = a.person_id
516
-        and tarc.status = 1
517
         and tarc.org_id = #{orgId}
516
         and tarc.org_id = #{orgId}
518
         ) AS recommedCount
517
         ) AS recommedCount
519
         FROM
518
         FROM

+ 1
- 0
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml View File

529
                 #{taPersonBuilding.buildingId}
529
                 #{taPersonBuilding.buildingId}
530
             </foreach>
530
             </foreach>
531
         </if>
531
         </if>
532
+        group by t.person_id
532
         ) AS temp4
533
         ) AS temp4
533
         GROUP BY
534
         GROUP BY
534
         DATE_FORMAT( temp4.create_date, '%Y-%m-%d' )
535
         DATE_FORMAT( temp4.create_date, '%Y-%m-%d' )