|
@@ -49,7 +49,7 @@
|
49
|
49
|
) as visit_num,
|
50
|
50
|
|
51
|
51
|
-- 分享新增用户
|
52
|
|
- (select count(*) from ta_share_person_from f
|
|
52
|
+ (select count(DISTINCT f.person_id) from ta_share_person_from f
|
53
|
53
|
where f.org_id = a.org_id
|
54
|
54
|
<choose>
|
55
|
55
|
<when test=" type == 'live'">
|
|
@@ -65,7 +65,7 @@
|
65
|
65
|
) as new_persons,
|
66
|
66
|
|
67
|
67
|
-- 分享新增客户
|
68
|
|
- (select count(*) from ta_share_person_from g
|
|
68
|
+ (select count(DISTINCT g.person_id) from ta_share_person_from g
|
69
|
69
|
inner join ta_person h on h.person_id = g.person_id
|
70
|
70
|
where g.org_id = a.org_id
|
71
|
71
|
<choose>
|