|
@@ -3,7 +3,7 @@
|
3
|
3
|
<mapper namespace="com.huiju.estateagents.statistic.mapper.TsCustomerStatisticDailyMapper">
|
4
|
4
|
|
5
|
5
|
<delete id="deleteNowDate">
|
6
|
|
- delete from ta_customer_statistic_daily
|
|
6
|
+ delete from ts_customer_statistic_daily
|
7
|
7
|
where customer_type = #{customerType}
|
8
|
8
|
AND date_format( create_date, '%Y-%m-%d' ) = date_format( #{nowDate}, '%Y-%m-%d' )
|
9
|
9
|
</delete>
|
|
@@ -13,7 +13,7 @@
|
13
|
13
|
org_id,
|
14
|
14
|
count( DISTINCT ( customer_id ) ) as customer_num
|
15
|
15
|
FROM
|
16
|
|
- ta_customer_follow_up_record
|
|
16
|
+ ts_customer_follow_up_record
|
17
|
17
|
WHERE
|
18
|
18
|
date_format( create_date, '%Y-%m-%d' ) = date_format( #{nowDate}, '%Y-%m-%d' )
|
19
|
19
|
GROUP BY
|
|
@@ -37,7 +37,7 @@
|
37
|
37
|
count( DISTINCT ( c.customer_id ) ) as customer_num,
|
38
|
38
|
c.org_id
|
39
|
39
|
FROM
|
40
|
|
- ta_activity_dynamic_enlist t
|
|
40
|
+ ts_activity_dynamic_enlist t
|
41
|
41
|
LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
|
42
|
42
|
AND t.building_id = c.building_id
|
43
|
43
|
AND t.org_id = c.org_id
|
|
@@ -52,7 +52,7 @@
|
52
|
52
|
SELECT
|
53
|
53
|
*
|
54
|
54
|
FROM
|
55
|
|
- ta_customer_statistic_daily
|
|
55
|
+ ts_customer_statistic_daily
|
56
|
56
|
WHERE
|
57
|
57
|
org_id = #{orgId}
|
58
|
58
|
AND customer_type = #{customerType}
|