Commit ff58461a authored by 魏艺敏's avatar 魏艺敏

update codes

parent ff77094f
#step1_4.job
#step1_3.job
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online ml_hospital_spam_pv_day
\ No newline at end of file
#step1_4.job
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online ml_hospital_spam_pv_month
\ No newline at end of file
#step2.job
type=command
dependencies=step1_1,step1_2,step1_3
dependencies=step1_1,step1_2,step1_3,step1_4
command=curl -X GET http://localhost:8553/api/report/sendEmail/weiyimin@igengmei.com/zhaojianwei@igengmei.com/meigou_detail_page
\ No newline at end of file
......@@ -73,12 +73,12 @@ FROM
LEFT JOIN
( -- 去掉疑似机构刷量的PV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......
......@@ -73,12 +73,12 @@ FROM
LEFT JOIN
( -- 去掉疑似机构刷量的UV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......
......@@ -247,12 +247,12 @@ FROM
LEFT JOIN
( -- 去掉疑似机构刷量的PV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......@@ -337,12 +337,12 @@ LEFT JOIN
LEFT JOIN
( -- 去掉疑似机构刷量的PV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......@@ -495,12 +495,12 @@ LEFT JOIN
LEFT JOIN
( -- 去掉疑似机构刷量的PV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......
......@@ -241,12 +241,12 @@ FROM
LEFT JOIN
( -- 去掉疑似机构刷量的pV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......@@ -331,12 +331,12 @@ LEFT JOIN
LEFT JOIN
( -- 去掉疑似机构刷量的pV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......@@ -489,12 +489,12 @@ LEFT JOIN
LEFT JOIN
( -- 去掉疑似机构刷量的PV和UV
SELECT cl_id
FROM ml_hospital_spam_pv_day
FROM online.ml_hospital_spam_pv_day
WHERE partition_date>='20180402' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
UNION ALL
SELECT cl_id
FROM ml_hospital_spam_pv_month
FROM online.ml_hospital_spam_pv_month
WHERE partition_date>='20171101' AND partition_date<regexp_replace((current_date),'-','')
AND pv_ratio>=0.95
)spam_pv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment