Commit 1ccb0d6b authored by 王妍's avatar 王妍

push codes

parent 0eb4b1ba
...@@ -81,12 +81,9 @@ from ...@@ -81,12 +81,9 @@ from
when singlerecord.status=6 then '已接单' when singlerecord.status=6 then '已接单'
when singlerecord.status=7 then '已重单' when singlerecord.status=7 then '已重单'
end as status_s---派单状态 end as status_s---派单状态
,meigou.service_city_name as paidan_city---城市 ,meigou.service_city_name as paidan_city---城市
,meigou.hospital_name as hospital_name ,meigou.hospital_name as hospital_name
,bd.paidan_tag_name as paidan_tag_name---派单项目名称 ,bd.paidan_tag_name as paidan_tag_name---派单项目名称
--- ,COUNT(DISTINCT t1.id) as clue_num --- ,COUNT(DISTINCT t1.id) as clue_num
FROM FROM
( (
...@@ -217,7 +214,7 @@ LEFT JOIN ...@@ -217,7 +214,7 @@ LEFT JOIN
FROM FROM
( (
SELECT id,json_split(t.dev_projects) dev_projects SELECT id,json_split(t.dev_projects) dev_projects
from tl_hdfs_budan_view t from online.tl_hdfs_budan_view t
WHERE partition_date = REGEXP_REPLACE(date_sub(current_date(),1),'-','') WHERE partition_date = REGEXP_REPLACE(date_sub(current_date(),1),'-','')
)t1 )t1
lateral view explode(t1.dev_projects) t2 as dev_project lateral view explode(t1.dev_projects) t2 as dev_project
...@@ -263,4 +260,4 @@ coalesce(t1.pooled_date,0) ...@@ -263,4 +260,4 @@ coalesce(t1.pooled_date,0)
,coalesce(t2.extra_consume,0) ,coalesce(t2.extra_consume,0)
,coalesce(t2.payment,0) ,coalesce(t2.payment,0)
,coalesce(t1.budan_id,0) ,coalesce(t1.budan_id,0)
ORDER BY 1 ORDER BY `入池时间`
\ No newline at end of file \ No newline at end of file
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