add workflow 招聘信息导入,dev

This commit is contained in:
root 2026-02-27 11:03:08 +08:00
parent e4edb0aed9
commit 668fd057e4
1 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/*Brilliance stems from wisdoms. */
/*************Head Section**************************************************************************/
/*Script Use: Periodically load data to :a_recruitment_intelligence(招聘信息汇总) */
/*Create Date:2026-02-27 10:37:18 */
/*Create Date:2026-02-27 11:02:27 */
/*SDM Developed By: dev */
/*SDM Developed Date: 2025-11-13 */
/*SDM Checked By: dev */
@ -35,6 +35,7 @@ ON COMMIT PRESERVE ROWS;
/*****************************************************************************************************/
/* GROUP 1:Source Table:agent_recruitment_insight*****************************************************/
/*****************************************************************************************************/
INSERT INTO a_recruitment_intelligence_agi_CUR_I (
id /*主键*/
,company_name /*公司名称*/
@ -54,7 +55,7 @@ INSERT INTO a_recruitment_intelligence_agi_CUR_I (
,title /*标题*/
,market_chance /*销售机会*/
)
SELECT
SELECT distinct on (p0.id)
COALESCE(p0.id,0) /*id*/
,COALESCE(TRIM(p0.company),'') /*company_name*/
,coalesce(p1.prov_name,'') /*province*/
@ -76,6 +77,8 @@ SELECT
FROM p70_ai_intelligence.agent_recruitment_insight p0
LEFT JOIN :COMMDB.d_account_info P1
ON p0.company =p1."name"
;