傅行帆 před 5 roky
rodič
revize
f90688a0ab

+ 1
- 1
src/main/resources/mapper/statistic/TsCustomerGenderStatisticMapper.xml Zobrazit soubor

@@ -46,7 +46,7 @@
46 46
                     t.enlist_id,
47 47
                     c.*
48 48
                 FROM
49
-                    ta_activity_dynamic_enlist t
49
+                    ts_activity_dynamic_enlist t
50 50
                     LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
51 51
                     AND t.building_id = c.building_id
52 52
                     AND t.org_id = c.org_id

+ 4
- 4
src/main/resources/mapper/statistic/TsCustomerStatisticDailyMapper.xml Zobrazit soubor

@@ -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}

+ 3
- 3
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml Zobrazit soubor

@@ -22,7 +22,7 @@
22 22
             org_id,
23 23
             count( DISTINCT ( customer_id ) ) as customer_num
24 24
         FROM
25
-            ta_customer_follow_up_record
25
+            ts_customer_follow_up_record
26 26
         WHERE
27 27
             date_format( create_date, '%Y-%m' ) = date_format( #{nowDate}, '%Y-%m' )
28 28
         GROUP BY
@@ -34,7 +34,7 @@
34 34
             count( DISTINCT ( c.customer_id ) ) as customer_num,
35 35
             c.org_id
36 36
         FROM
37
-            ta_activity_dynamic_enlist t
37
+            ts_activity_dynamic_enlist t
38 38
             LEFT JOIN ta_recommend_customer c ON t.person_id = c.person_id
39 39
             AND t.building_id = c.building_id
40 40
             AND t.org_id = c.org_id
@@ -48,7 +48,7 @@
48 48
         SELECT
49 49
           *
50 50
         FROM
51
-          ta_customer_statistic_monthly
51
+          ts_customer_statistic_monthly
52 52
         WHERE
53 53
           org_id = #{orgId}
54 54
         AND customer_type = #{customerType}