Browse Source

Merge branch 'master' of http://43.254.221.77:3000/zhangbr/elab_mvp

Binren Zhnag 5 years ago
parent
commit
5c31dbba66
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
     """