add workflow 市场News-Agents调度,dev

This commit is contained in:
root 2026-03-19 11:04:22 +08:00
parent c37f11aafb
commit 9d0b547898
1 changed files with 8 additions and 1 deletions

View File

@ -92,6 +92,13 @@ left join p70_ai_intelligence.key_recommendation p6
on regexp_replace(p5.matched_keys::text, '[^\u4e00-\u9fa5]', '', 'g')like '%'||regexp_replace(p6., '[^\u4e00-\u9fa5]', '', 'g') ||'%' on regexp_replace(p5.matched_keys::text, '[^\u4e00-\u9fa5]', '', 'g')like '%'||regexp_replace(p6., '[^\u4e00-\u9fa5]', '', 'g') ||'%'
order by p1.company_name,p1.source_url,p1.create_tm desc,p5.created_at desc; order by p1.company_name,p1.source_url,p1.create_tm desc,p5.created_at desc;
--account的销售
update p60_mart.news_letter_info p1
set saler_name=p2.saler_name
from p30_common.account_tsm_rela_t p2
where p1.account_name ~ p2.account_name
and p2.data_type='news_letter';
drop table if exists newsletter_funnel_one_t2; drop table if exists newsletter_funnel_one_t2;
create temporary table newsletter_funnel_one_t2 create temporary table newsletter_funnel_one_t2
as as
@ -121,7 +128,7 @@ select * from newsletter_funnel_one_t1
delete from p60_mart.news_letter_report_info where source_system='market_summary';; delete from p60_mart.news_letter_report_info where source_system='market_summary';;
insert into p60_mart.news_letter_report_info insert into p60_mart.news_letter_report_info
select * from newsletter_funnel_one_t2 select * from newsletter_funnel_one_t2
;