Browse Source

report_push: sql参数调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
0d14da57f8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      report_push.py

+ 3 - 1
report_push.py

@@ -79,6 +79,7 @@ class ReportPush(object):
                         created >= %s
                     AND created <= %s
                     AND house_id IN %s
+                    AND source ='3'
                     UNION
                         SELECT
                             brand_customer_id AS user_id,
@@ -109,6 +110,7 @@ class ReportPush(object):
                     wx_phone_time >= %s
                 AND wx_phone_time <= %s
                 AND house_id IN %s
+                and source = '3'
                 UNION
                     SELECT
                         brand_customer_id,
@@ -133,7 +135,7 @@ class ReportPush(object):
                         ) t1
                     WHERE
                         houdian_time >= %s
-                    AND houdian_time < %s
+                    AND houdian_time <= %s
             ) t1
     """