瀏覽代碼

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

Binren Zhnag 5 年之前
父節點
當前提交
5c31dbba66
共有 1 個文件被更改,包括 3 次插入1 次删除
  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
     """