From 47eafeef14b73b5706deb17b58297a07dc083116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 29 Jan 2024 22:42:32 +0800 Subject: [PATCH] Updated. --- lib/tasks/sync_fgu_personal_data_tasks.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/sync_fgu_personal_data_tasks.rake b/lib/tasks/sync_fgu_personal_data_tasks.rake index 230007f..104aa79 100644 --- a/lib/tasks/sync_fgu_personal_data_tasks.rake +++ b/lib/tasks/sync_fgu_personal_data_tasks.rake @@ -306,10 +306,11 @@ module FguSyncPlugin period_start_date = self.parse_date(dt["period_start_date"]) period_end_date = self.parse_date(dt["period_end_date"]) unit = self.localize_data(dt["unit"]) + jobs = self.localize_data(dt["jobs"]) participants = self.localize_data(dt["participants"]) year = (period_start_date ? period_start_date.strftime("%Y") : "") prj = Project.where(:rss2_id => rss2_id).first - prj_data = {:rss2_id => rss2_id,:project_title_translations => project_title, :project_number=> project_number, :period_start_date => period_start_date, :period_end_date => period_end_date, :unit_translations => unit, :participants_translations => participants, :year => year, :member_profile => mp} + prj_data = {:rss2_id => rss2_id,:project_title_translations => project_title, :project_number=> project_number, :period_start_date => period_start_date, :period_end_date => period_end_date, :unit_translations => unit, :jobs_translations => jobs, :participants_translations => participants, :year => year, :member_profile => mp} if prj.nil? prj = Project.create(prj_data) puts "Saving new Project." @@ -698,6 +699,7 @@ module FguSyncPlugin "計畫起日期" => "period_start_date", "計畫迄日期" => "period_end_date", "經費補助單位(補助單位)" => "unit", + "填報者類型(職稱/擔任之工作)" => "jobs", "所有參與者" => "participants" }, 'vrul_base' => {