много фиксов
This commit is contained in:
parent
ac98fabf24
commit
def66bf863
25 changed files with 1365 additions and 114 deletions
|
|
@ -42,18 +42,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>full_name</field>
|
<field>full_name</field>
|
||||||
<name>full_name</name>
|
<name>full_name</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizen_child</table>
|
<table>citizen_child</table>
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizen_education_diplomas_received</table>
|
<table>citizen_education_diplomas_received</table>
|
||||||
|
|
|
||||||
|
|
@ -52,18 +52,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>citizenship_date</field>
|
<field>citizenship_date</field>
|
||||||
<name>citizenship_date</name>
|
<name>citizenship_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizenship_foreign</table>
|
<table>citizenship_foreign</table>
|
||||||
|
|
@ -106,18 +108,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>residense_right_date</field>
|
<field>residense_right_date</field>
|
||||||
<name>residense_right_date</name>
|
<name>residense_right_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizenship_foreign</table>
|
<table>citizenship_foreign</table>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,117 @@
|
||||||
<notepads>
|
<notepads>
|
||||||
</notepads>
|
</notepads>
|
||||||
<order>
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>Table input</from>
|
||||||
|
<to>Insert / update</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
</order>
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Insert / update</name>
|
||||||
|
<type>InsertUpdate</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>10000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
|
</key>
|
||||||
|
<schema>ervu-dashboard</schema>
|
||||||
|
<table>citizen_sports_categories</table>
|
||||||
|
<value>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<rename>recruit_id</rename>
|
||||||
|
<update>N</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>start_date_category</name>
|
||||||
|
<rename>start_date_category</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>end_date_category</name>
|
||||||
|
<rename>end_date_category</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>sports_category_name</name>
|
||||||
|
<rename>sports_category_name</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>type_sport</name>
|
||||||
|
<rename>type_sport</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>sport_title</name>
|
||||||
|
<rename>sport_title</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>having_sport_category</name>
|
||||||
|
<rename>having_sport_category</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>having_sport_title</name>
|
||||||
|
<rename>having_sport_title</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<update_bypassed>N</update_bypassed>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>672</xloc>
|
||||||
|
<yloc>256</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>Table input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<sql>SELECT recruit_id,
|
||||||
|
(sport_info->'sportRazr'->>'dataPrisv')::date start_date_category,
|
||||||
|
(sport_info->'sportRazr'->>'dataDeistv')::date as end_date_category,
|
||||||
|
sport_info->'sportRazr'->>'razryadNaim' as sports_category_name,
|
||||||
|
sport_info->'sportRazr'->>'sportNaim' as type_sport,
|
||||||
|
sport_info->>'sportZvan' as sport_title,
|
||||||
|
case when sport_info->>'sportRazr' != 'null'
|
||||||
|
then true else false end as having_sport_category,
|
||||||
|
(case when sport_info->>'sportZvan' != 'null'
|
||||||
|
then true else false end) as having_sport_title
|
||||||
|
FROM public.recruits_info ri
|
||||||
|
join public.recruits r ON r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}',
|
||||||
|
jsonb_array_elements(ri.info->'svedFL'->'svedSport'->'sport') AS sport_info
|
||||||
|
WHERE info->'svedFL'->'svedSport'->>'sport' != 'null'
|
||||||
|
and info->'svedFL'->'svedSport'->>'sport' != '[]';</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>384</xloc>
|
||||||
|
<yloc>256</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
<transform_error_handling>
|
<transform_error_handling>
|
||||||
</transform_error_handling>
|
</transform_error_handling>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,248 @@
|
||||||
<notepads>
|
<notepads>
|
||||||
</notepads>
|
</notepads>
|
||||||
<order>
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>Table input</from>
|
||||||
|
<to>Insert / update</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
</order>
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Insert / update</name>
|
||||||
|
<type>InsertUpdate</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>10000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen_work_activity</table>
|
||||||
|
<value>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<rename>recruit_id</rename>
|
||||||
|
<update>N</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>personnel_event_date</name>
|
||||||
|
<rename>personnel_event_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>personnel_event_type</name>
|
||||||
|
<rename>personnel_event_type</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>current_workplace</name>
|
||||||
|
<rename>current_workplace</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>position</name>
|
||||||
|
<rename>position</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_name</name>
|
||||||
|
<rename>employer_name</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_kpp</name>
|
||||||
|
<rename>employer_kpp</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_category</name>
|
||||||
|
<rename>employer_category</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_inn</name>
|
||||||
|
<rename>employer_inn</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_address</name>
|
||||||
|
<rename>employer_address</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_ogrnip</name>
|
||||||
|
<rename>employer_ogrnip</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_unit_type</name>
|
||||||
|
<rename>employer_unit_type</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>employer_unit_address</name>
|
||||||
|
<rename>employer_unit_address</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>parental_leave_start_date</name>
|
||||||
|
<rename>parental_leave_start_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>parental_leave_end_date</name>
|
||||||
|
<rename>parental_leave_end_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>parental_leave_active</name>
|
||||||
|
<rename>parental_leave_active</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>reg_ip_date</name>
|
||||||
|
<rename>reg_ip_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>dereg_ip_date</name>
|
||||||
|
<rename>dereg_ip_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>ogrnip_ip</name>
|
||||||
|
<rename>ogrnip_ip</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>active_ip</name>
|
||||||
|
<rename>active_ip</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>reg_self_employment_date</name>
|
||||||
|
<rename>reg_self_employment_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>dereg_self_employment_date</name>
|
||||||
|
<rename>dereg_self_employment_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>active_self_employment</name>
|
||||||
|
<rename>active_self_employment</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<update_bypassed>N</update_bypassed>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>720</xloc>
|
||||||
|
<yloc>256</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>Table input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>WITH trud_info AS (
|
||||||
|
SELECT
|
||||||
|
ri.info,
|
||||||
|
ri.recruit_id::uuid,
|
||||||
|
case when ri.info->'svedFL'->'svedTrud'->'trudDeyat' IS NULL THEN NULL
|
||||||
|
WHEN jsonb_typeof(ri.info->'svedFL'->'svedTrud'->'trudDeyat') = 'array' THEN
|
||||||
|
(ri.info->'svedFL'->'svedTrud'->'trudDeyat'->0) end as trud_deyat,
|
||||||
|
case when ri.info->'svedFL'->'svedTrud'->'trudDeyat' IS NULL THEN NULL
|
||||||
|
WHEN jsonb_typeof(ri.info->'svedFL'->'svedTrud'->'trudDeyat'->0->'svedUhodReb') = 'array'
|
||||||
|
then ri.info->'svedFL'->'svedTrud'->'trudDeyat'->0->'svedUhodReb'->0 end AS parental_leave_info,
|
||||||
|
coalesce(
|
||||||
|
ri.info->'svedFL'->'svedRabotodat'->'rabotodat'->'aktRabotodat',
|
||||||
|
ri.info->'svedFL'->'svedRabotodat'->'rabotodat'->'predRabotodat'
|
||||||
|
) AS employer,
|
||||||
|
(CASE
|
||||||
|
WHEN info->'svedFL'->'svedRegIP'->'regIP' IS NULL THEN NULL
|
||||||
|
WHEN jsonb_typeof(info->'svedFL'->'svedRegIP'->'regIP'->'aktRegIP') = 'array' THEN
|
||||||
|
(info->'svedFL'->'svedRegIP'->'regIP'->'aktRegIP'->0)
|
||||||
|
ELSE
|
||||||
|
info->'svedFL'->'svedRegIP'->'regIP'->'predRegIP'
|
||||||
|
END) AS reg_ip,
|
||||||
|
COALESCE(
|
||||||
|
ri.info->'svedFL'->'svedNPD'->'npd'->'aktNPD',
|
||||||
|
ri.info->'svedFL'->'svedNPD'->'npd'->'predNPD'
|
||||||
|
) AS self_employment
|
||||||
|
FROM public.recruits_info ri
|
||||||
|
join public.recruits r
|
||||||
|
ON r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
ti.recruit_id::uuid,
|
||||||
|
(ti.trud_deyat->>'dataMeropr')::date AS personnel_event_date,
|
||||||
|
ti.trud_deyat->>'naimTipKadrMeropr' AS personnel_event_type,
|
||||||
|
case when ti.trud_deyat->>'prAktMestRab' = '1' then true else false end AS current_workplace,
|
||||||
|
ti.trud_deyat->>'trudFunkcziya' AS position,
|
||||||
|
ti.trud_deyat->'svedOrg'->>'naimOrg' AS employer_name,
|
||||||
|
ti.employer->'svedYUL'->>'kpp' AS employer_kpp,
|
||||||
|
CASE
|
||||||
|
WHEN ti.employer->>'svedYUL' != 'null' THEN 'Юридическое лицо'
|
||||||
|
WHEN ti.employer->>'svedIP' != 'null' THEN 'Индивидуальный предприниматель'
|
||||||
|
END AS employer_category,
|
||||||
|
COALESCE(
|
||||||
|
ti.employer->'svedYUL'->>'innyul',
|
||||||
|
ti.employer->'svedIP'->>'innyfl'
|
||||||
|
) AS employer_inn,
|
||||||
|
ti.employer->'svedYUL'->'svedOPK'->>'region' AS employer_address,
|
||||||
|
COALESCE(
|
||||||
|
ti.employer->'svedIP'->>'ogrnip',
|
||||||
|
ti.employer->'svedYUL'->'extend'->>'ogrn'
|
||||||
|
) AS employer_ogrnip,
|
||||||
|
ti.employer->'extend'->>'tipPodrazdRabotodat' as employer_unit_type,
|
||||||
|
ti.employer->'extend'->>'adresPodrazdRabotodat' as employer_unit_address,
|
||||||
|
(ti.parental_leave_info->>'dataNachUhodReb')::date as parental_leave_start_date,
|
||||||
|
(ti.parental_leave_info->>'dataKonUhodReb')::date as parental_leave_end_date,
|
||||||
|
case when (ti.parental_leave_info->>'dataNachUhodReb')::date <= current_date
|
||||||
|
and ((ti.parental_leave_info->>'dataKonUhodReb')::date is null
|
||||||
|
or (ti.parental_leave_info->>'dataKonUhodReb')::date > current_date)
|
||||||
|
then true
|
||||||
|
else false end as parental_leave_active,
|
||||||
|
(ti.reg_ip->>'dataRegIP')::date as reg_ip_date,
|
||||||
|
(ti.reg_ip->>'dataINNNed')::date as dereg_ip_date,
|
||||||
|
ti.reg_ip->>'ogrnip' as ogrnip_ip,
|
||||||
|
case when ti.reg_ip != 'null'
|
||||||
|
then true else false end as active_ip,
|
||||||
|
ti.self_employment->>'dataUchNPD' as reg_self_employment_date,
|
||||||
|
ti.self_employment->>'dataSnUchNPD' as dereg_self_employment_date,
|
||||||
|
case when ti.self_employment != 'null'
|
||||||
|
then true else false end as active_self_employment
|
||||||
|
FROM trud_info ti
|
||||||
|
</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>528</xloc>
|
||||||
|
<yloc>256</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
<transform_error_handling>
|
<transform_error_handling>
|
||||||
</transform_error_handling>
|
</transform_error_handling>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizenship</table>
|
<table>citizenship</table>
|
||||||
|
|
|
||||||
237
v1_apache-hop dash mapping/info_recruits/deferments.hpl
Normal file
237
v1_apache-hop dash mapping/info_recruits/deferments.hpl
Normal file
|
|
@ -0,0 +1,237 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<pipeline>
|
||||||
|
<info>
|
||||||
|
<name>deferments</name>
|
||||||
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
||||||
|
<description/>
|
||||||
|
<extended_description/>
|
||||||
|
<pipeline_version/>
|
||||||
|
<pipeline_type>Normal</pipeline_type>
|
||||||
|
<parameters>
|
||||||
|
</parameters>
|
||||||
|
<capture_transform_performance>N</capture_transform_performance>
|
||||||
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
||||||
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
||||||
|
<created_user>-</created_user>
|
||||||
|
<created_date>2025/04/20 11:21:19.116</created_date>
|
||||||
|
<modified_user>-</modified_user>
|
||||||
|
<modified_date>2025/04/20 11:21:19.116</modified_date>
|
||||||
|
</info>
|
||||||
|
<notepads>
|
||||||
|
</notepads>
|
||||||
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_right_input</from>
|
||||||
|
<to>Insert / update</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_input</from>
|
||||||
|
<to>Insert / update 2</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Insert / update</name>
|
||||||
|
<type>InsertUpdate</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>10000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen_deferment_right</table>
|
||||||
|
<value>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<rename>recruit_id</rename>
|
||||||
|
<update>N</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>start_date</name>
|
||||||
|
<rename>start_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>end_date</name>
|
||||||
|
<rename>end_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>code</name>
|
||||||
|
<rename>code</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>has_deferment_right</name>
|
||||||
|
<rename>has_deferment_right</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<update_bypassed>N</update_bypassed>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>544</xloc>
|
||||||
|
<yloc>208</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>Insert / update 2</name>
|
||||||
|
<type>InsertUpdate</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>10000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen_deferment</table>
|
||||||
|
<value>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<rename>recruit_id</rename>
|
||||||
|
<update>N</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>decision_number</name>
|
||||||
|
<rename>decision_number</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>deferment_type</name>
|
||||||
|
<rename>deferment_type</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>start_date</name>
|
||||||
|
<rename>start_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>end_date</name>
|
||||||
|
<rename>end_date</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>reason_code</name>
|
||||||
|
<rename>reason_code</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>has_active_deferment</name>
|
||||||
|
<rename>has_active_deferment</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>has_exemption</name>
|
||||||
|
<rename>has_exemption</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>active</name>
|
||||||
|
<rename>active</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<update_bypassed>N</update_bypassed>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>544</xloc>
|
||||||
|
<yloc>336</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>select
|
||||||
|
ddd.recruit_id,
|
||||||
|
ddd.decision_number,
|
||||||
|
ddd.type->>'value' as deferment_type,
|
||||||
|
ddd.decision_date as start_date,
|
||||||
|
ddd.postponement_date as end_date,
|
||||||
|
ddd.base_deferment as reason_code,
|
||||||
|
ddd.type->>'code' = '1' as has_active_deferment,
|
||||||
|
ddd.type->>'code' = '2' as has_exemption,
|
||||||
|
not ddd.hidden as active
|
||||||
|
from decision_deferment_dto ddd
|
||||||
|
join public.recruits r
|
||||||
|
ON r.id = ddd.recruit_id
|
||||||
|
-- AND r.system_update_date >= '${UP_D}'
|
||||||
|
where hidden is false;</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>272</xloc>
|
||||||
|
<yloc>336</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_right_input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>select
|
||||||
|
rd.recruit_id,
|
||||||
|
rd.date_of_information as start_date,
|
||||||
|
rd.postponement_date as end_date,
|
||||||
|
erfd.code,
|
||||||
|
true as has_deferment_right
|
||||||
|
from recruits_deferment rd
|
||||||
|
join ervu_reason_for_deferment erfd
|
||||||
|
on erfd.id = rd.ervu_reason_for_deferment_id
|
||||||
|
join public.recruits r
|
||||||
|
ON r.id = rd.recruit_id
|
||||||
|
AND r.system_update_date >= '${UP_D}'
|
||||||
|
where rd.hidden is false;</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>272</xloc>
|
||||||
|
<yloc>208</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform_error_handling>
|
||||||
|
</transform_error_handling>
|
||||||
|
<attributes/>
|
||||||
|
</pipeline>
|
||||||
|
|
@ -52,18 +52,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>deputy</field>
|
<field>deputy</field>
|
||||||
<name>deputy</name>
|
<name>deputy</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>deputy</table>
|
<table>deputy</table>
|
||||||
|
|
@ -111,18 +113,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>deputy</field>
|
<field>deputy</field>
|
||||||
<name>deputy</name>
|
<name>deputy</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>deputy</table>
|
<table>deputy</table>
|
||||||
|
|
|
||||||
|
|
@ -52,18 +52,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>disability</table>
|
<table>disability</table>
|
||||||
|
|
@ -121,18 +123,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>disability</table>
|
<table>disability</table>
|
||||||
|
|
@ -156,6 +160,16 @@
|
||||||
<rename>start_date</rename>
|
<rename>start_date</rename>
|
||||||
<update>Y</update>
|
<update>Y</update>
|
||||||
</value>
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>disability</name>
|
||||||
|
<rename>disability</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>is_incompetent</name>
|
||||||
|
<rename>is_incompetent</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
</lookup>
|
</lookup>
|
||||||
<update_bypassed>N</update_bypassed>
|
<update_bypassed>N</update_bypassed>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
@ -178,22 +192,23 @@
|
||||||
<connection>ervu_person_registry</connection>
|
<connection>ervu_person_registry</connection>
|
||||||
<execute_each_row>N</execute_each_row>
|
<execute_each_row>N</execute_each_row>
|
||||||
<limit>0</limit>
|
<limit>0</limit>
|
||||||
<sql>select
|
<sql>select
|
||||||
r.id recruit_id,
|
recruit_id,
|
||||||
case when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='1' then 'I группа'
|
case when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='1' then 'I группа'
|
||||||
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='2' then 'II группа'
|
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='2' then 'II группа'
|
||||||
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='3' then 'III группа'
|
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='3' then 'III группа'
|
||||||
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='4' then 'ребенок-инвалид'
|
when ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa'='4' then 'ребенок-инвалид'
|
||||||
end disability_group,
|
end disability_group,
|
||||||
ri.info->'svedFL'->'svedInvalid'->'invalid'->>'ustanOrg' organization_name,
|
ri.info->'svedFL'->'svedInvalid'->'invalid'->>'ustanOrg' organization_name,
|
||||||
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataUstan', 'YYYY-MM-DD') start_date,
|
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataUstan', 'YYYY-MM-DD') start_date,
|
||||||
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataSnyat', 'YYYY-MM-DD') close_date,
|
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataSnyat', 'YYYY-MM-DD') close_date,
|
||||||
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataPodtverzhdPlan', 'YYYY-MM-DD') confirmation_date,
|
to_date(ri.info->'svedFL'->'svedInvalid'->'invalid'->'ustanInvalid'->>'dataPodtverzhdPlan', 'YYYY-MM-DD') confirmation_date,
|
||||||
true disability
|
true disability
|
||||||
from public.recruits r
|
from public.recruits_info ri
|
||||||
join public.recruits_info ri on r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
join public.recruits r
|
||||||
where ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa' is not null
|
ON r.id = ri.recruit_id
|
||||||
--AND r.system_update_date >= '${UP_D}'</sql>
|
AND r.system_update_date >= '${UP_D}'
|
||||||
|
where ri.info->'svedFL'->'svedInvalid'->>'invalid' != 'null';</sql>
|
||||||
<variables_active>Y</variables_active>
|
<variables_active>Y</variables_active>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
<GUI>
|
<GUI>
|
||||||
|
|
@ -215,15 +230,18 @@ where ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa' is not null
|
||||||
<connection>ervu_person_registry</connection>
|
<connection>ervu_person_registry</connection>
|
||||||
<execute_each_row>N</execute_each_row>
|
<execute_each_row>N</execute_each_row>
|
||||||
<limit>0</limit>
|
<limit>0</limit>
|
||||||
<sql>select
|
<sql>select
|
||||||
r.id recruit_id,
|
recruit_id,
|
||||||
ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' organization_name,
|
ri.info->'svedNedeesp'->'nedeesposob'->>'naimOrg' organization_name,
|
||||||
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataPrisv', 'YYYY-MM-DD') start_date,
|
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataPrisv', 'YYYY-MM-DD') start_date,
|
||||||
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataOtmeny', 'YYYY-MM-DD') close_date
|
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataOtmeny', 'YYYY-MM-DD') close_date,
|
||||||
from public.recruits r
|
false disability,
|
||||||
join public.recruits_info ri on r.id = ri.recruit_id
|
true is_incompetent
|
||||||
where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null
|
from public.recruits_info ri
|
||||||
AND r.system_update_date >= '${UP_D}'</sql>
|
join public.recruits r
|
||||||
|
ON r.id = ri.recruit_id
|
||||||
|
AND r.system_update_date >= '${UP_D}'
|
||||||
|
where ri.info->'svedNedeesp'->>'nedeesposob' != 'null';</sql>
|
||||||
<variables_active>Y</variables_active>
|
<variables_active>Y</variables_active>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
<GUI>
|
<GUI>
|
||||||
|
|
|
||||||
|
|
@ -42,18 +42,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>reg_date</field>
|
<field>reg_date</field>
|
||||||
<name>reg_date</name>
|
<name>reg_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>disease</table>
|
<table>disease</table>
|
||||||
|
|
@ -77,6 +79,11 @@
|
||||||
<rename>reg_date</rename>
|
<rename>reg_date</rename>
|
||||||
<update>Y</update>
|
<update>Y</update>
|
||||||
</value>
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>has_disease</name>
|
||||||
|
<rename>has_disease</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
</lookup>
|
</lookup>
|
||||||
<update_bypassed>N</update_bypassed>
|
<update_bypassed>N</update_bypassed>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
@ -99,20 +106,27 @@
|
||||||
<connection>ervu_person_registry</connection>
|
<connection>ervu_person_registry</connection>
|
||||||
<execute_each_row>N</execute_each_row>
|
<execute_each_row>N</execute_each_row>
|
||||||
<limit>0</limit>
|
<limit>0</limit>
|
||||||
<sql>with zdorov as
|
<sql>with zdorov as (select ri.recruit_id,
|
||||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') z,
|
jsonb_array_elements(
|
||||||
ri.recruit_id
|
ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->
|
||||||
from public.recruits_info ri
|
'sostZdorov') z,
|
||||||
join public.recruits r ON r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
case
|
||||||
where jsonb_typeof(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') = 'array')
|
when ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->>
|
||||||
select
|
'priznakNalichSved' = '1'
|
||||||
r.id recruit_id,
|
then true
|
||||||
z->>'kodZabol' code,
|
else false end as has_disease
|
||||||
z->>'naimZabol' name,
|
from public.recruits_info ri
|
||||||
to_date(z->>'dataDiagn', 'YYYY-MM-DD') reg_date
|
join public.recruits r
|
||||||
from public.recruits r
|
ON r.id = ri.recruit_id
|
||||||
join zdorov on r.id = zdorov.recruit_id
|
AND r.system_update_date >= '${UP_D}'
|
||||||
</sql>
|
where jsonb_typeof(ri.info -> 'svedFL' -> 'svedSostZdorov' -> 'svedZdorov' ->
|
||||||
|
'sostZdorov') = 'array')
|
||||||
|
select recruit_id,
|
||||||
|
z ->> 'kodZabol' code,
|
||||||
|
z ->> 'naimZabol' name,
|
||||||
|
has_disease,
|
||||||
|
to_date(z ->> 'dataDiagn', 'YYYY-MM-DD') reg_date
|
||||||
|
from zdorov;</sql>
|
||||||
<variables_active>Y</variables_active>
|
<variables_active>Y</variables_active>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
<GUI>
|
<GUI>
|
||||||
|
|
|
||||||
|
|
@ -52,18 +52,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>drivers_licence</table>
|
<table>drivers_licence</table>
|
||||||
|
|
@ -111,23 +113,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>tractor_driver</field>
|
<field>tractor_driver</field>
|
||||||
<name>tractor_driver</name>
|
<name>tractor_driver</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>drivers_licence</table>
|
<table>drivers_licence</table>
|
||||||
|
|
|
||||||
|
|
@ -90,13 +90,14 @@ type_place_stay</note>
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizen</table>
|
<table>citizen</table>
|
||||||
|
|
|
||||||
|
|
@ -1359,6 +1359,44 @@
|
||||||
<yloc>3264</yloc>
|
<yloc>3264</yloc>
|
||||||
<attributes_hac/>
|
<attributes_hac/>
|
||||||
</action>
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>Success deferment</name>
|
||||||
|
<description/>
|
||||||
|
<type>SUCCESS</type>
|
||||||
|
<attributes/>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>2256</xloc>
|
||||||
|
<yloc>3344</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>deferments</name>
|
||||||
|
<description/>
|
||||||
|
<type>PIPELINE</type>
|
||||||
|
<attributes/>
|
||||||
|
<add_date>N</add_date>
|
||||||
|
<add_time>N</add_time>
|
||||||
|
<clear_files>N</clear_files>
|
||||||
|
<clear_rows>N</clear_rows>
|
||||||
|
<create_parent_folder>N</create_parent_folder>
|
||||||
|
<exec_per_row>N</exec_per_row>
|
||||||
|
<filename>${PROJECT_HOME}/info_recruits/deferments.hpl</filename>
|
||||||
|
<logext/>
|
||||||
|
<logfile/>
|
||||||
|
<loglevel>Basic</loglevel>
|
||||||
|
<parameters>
|
||||||
|
<pass_all_parameters>Y</pass_all_parameters>
|
||||||
|
</parameters>
|
||||||
|
<params_from_previous>N</params_from_previous>
|
||||||
|
<run_configuration>local</run_configuration>
|
||||||
|
<set_append_logfile>N</set_append_logfile>
|
||||||
|
<set_logfile>N</set_logfile>
|
||||||
|
<wait_until_finished>Y</wait_until_finished>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>1856</xloc>
|
||||||
|
<yloc>3344</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
</actions>
|
</actions>
|
||||||
<hops>
|
<hops>
|
||||||
<hop>
|
<hop>
|
||||||
|
|
@ -1868,7 +1906,7 @@
|
||||||
<hop>
|
<hop>
|
||||||
<from>select_delta_time.hpl</from>
|
<from>select_delta_time.hpl</from>
|
||||||
<to>citizen_work_activity.hpl</to>
|
<to>citizen_work_activity.hpl</to>
|
||||||
<enabled>N</enabled>
|
<enabled>Y</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
|
@ -1882,7 +1920,7 @@
|
||||||
<hop>
|
<hop>
|
||||||
<from>select_delta_time.hpl</from>
|
<from>select_delta_time.hpl</from>
|
||||||
<to>citizen_sports_categories.hpl</to>
|
<to>citizen_sports_categories.hpl</to>
|
||||||
<enabled>N</enabled>
|
<enabled>Y</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
|
@ -1935,6 +1973,20 @@
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferments</from>
|
||||||
|
<to>Success deferment</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>N</evaluation>
|
||||||
|
<unconditional>Y</unconditional>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>select_delta_time.hpl</from>
|
||||||
|
<to>deferments</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>Y</evaluation>
|
||||||
|
<unconditional>N</unconditional>
|
||||||
|
</hop>
|
||||||
</hops>
|
</hops>
|
||||||
<notepads>
|
<notepads>
|
||||||
<notepad>
|
<notepad>
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>medical_authorities</table>
|
<table>medical_authorities</table>
|
||||||
|
|
@ -101,7 +102,7 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
|
|
@ -131,6 +132,11 @@
|
||||||
<rename>start_date</rename>
|
<rename>start_date</rename>
|
||||||
<update>Y</update>
|
<update>Y</update>
|
||||||
</value>
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>registered_in_pnd</name>
|
||||||
|
<rename>registered_in_pnd</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
</lookup>
|
</lookup>
|
||||||
<update_bypassed>N</update_bypassed>
|
<update_bypassed>N</update_bypassed>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
@ -154,19 +160,23 @@
|
||||||
<execute_each_row>N</execute_each_row>
|
<execute_each_row>N</execute_each_row>
|
||||||
<limit>0</limit>
|
<limit>0</limit>
|
||||||
<sql>with uchet as
|
<sql>with uchet as
|
||||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') u,
|
(select ri.recruit_id,
|
||||||
ri.recruit_id
|
jsonb_array_elements(ri.info -> 'svedFL' -> 'svedPND' -> 'svedUchetDisp' ->
|
||||||
from public.recruits_info ri
|
'svedUchet') u,
|
||||||
join public.recruits r ON r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
ri.info -> 'svedFL' -> 'svedPND' -> 'svedUchetDisp' -> 'svedUchet' ->>
|
||||||
where jsonb_typeof(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') = 'array')
|
'priznakNalichSved' = '1' as registered_in_pnd
|
||||||
select
|
from public.recruits_info ri
|
||||||
r.id recruit_id,
|
join public.recruits r
|
||||||
to_date(u->>'dataPostUchet', 'YYYY-MM-DD')::date start_date,
|
ON r.id = ri.recruit_id
|
||||||
to_date(u->>'dataSnyatUchet', 'YYYY-MM-DD')::date close_date,
|
AND r.system_update_date >= '${UP_D}'
|
||||||
to_date(u->>'dataPlan', 'YYYY-MM-DD')::date change_date
|
where jsonb_typeof(ri.info -> 'svedFL' -> 'svedPND' -> 'svedUchetDisp' -> 'svedUchet') =
|
||||||
from public.recruits r
|
'array')
|
||||||
join uchet on r.id = uchet.recruit_id
|
select recruit_id,
|
||||||
|
u ->> 'dataPostUchet' start_date,
|
||||||
|
u ->> 'dataSnyatUchet' close_date,
|
||||||
|
u ->> 'dataPlan' change_date,
|
||||||
|
registered_in_pnd
|
||||||
|
from uchet;
|
||||||
</sql>
|
</sql>
|
||||||
<variables_active>Y</variables_active>
|
<variables_active>Y</variables_active>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
@ -190,19 +200,20 @@ join uchet on r.id = uchet.recruit_id
|
||||||
<execute_each_row>N</execute_each_row>
|
<execute_each_row>N</execute_each_row>
|
||||||
<limit>0</limit>
|
<limit>0</limit>
|
||||||
<sql>with uchet as
|
<sql>with uchet as
|
||||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') u,
|
(select ri.recruit_id,
|
||||||
ri.recruit_id
|
jsonb_array_elements(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') u,
|
||||||
from public.recruits_info ri
|
ri.info->'svedFL'->'svedUchetVICH'->>'priznakNalichSved' = '1' has_vich
|
||||||
join public.recruits r ON r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
from public.recruits_info ri
|
||||||
where jsonb_typeof(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') = 'array')
|
join public.recruits r
|
||||||
select
|
ON r.id = ri.recruit_id
|
||||||
r.id recruit_id,
|
AND r.system_update_date >= '${UP_D}'
|
||||||
to_date(u->>'dataPostUchet', 'YYYY-MM-DD')::date start_date,
|
where jsonb_typeof(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') = 'array')
|
||||||
to_date(u->>'dataSnyat', 'YYYY-MM-DD')::date close_date,
|
select
|
||||||
true HIV
|
recruit_id,
|
||||||
from public.recruits r
|
to_date(u->>'dataPostUchet', 'YYYY-MM-DD') start_date,
|
||||||
join uchet on r.id = uchet.recruit_id
|
to_date(u->>'dataSnyat', 'YYYY-MM-DD') close_date,
|
||||||
</sql>
|
true HIV
|
||||||
|
from uchet;</sql>
|
||||||
<variables_active>Y</variables_active>
|
<variables_active>Y</variables_active>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
<GUI>
|
<GUI>
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizen_guardianship</table>
|
<table>citizen_guardianship</table>
|
||||||
|
|
|
||||||
|
|
@ -52,23 +52,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>passport_number</field>
|
<field>passport_number</field>
|
||||||
<name>passport_number</name>
|
<name>passport_number</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>passport_series</field>
|
<field>passport_series</field>
|
||||||
<name>passport_series</name>
|
<name>passport_series</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>passport</table>
|
<table>passport</table>
|
||||||
|
|
@ -126,23 +129,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>passport_number</field>
|
<field>passport_number</field>
|
||||||
<name>passport_number</name>
|
<name>passport_number</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>passport_series</field>
|
<field>passport_series</field>
|
||||||
<name>passport_series</name>
|
<name>passport_series</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>passport</table>
|
<table>passport</table>
|
||||||
|
|
|
||||||
|
|
@ -72,23 +72,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>type_property</field>
|
<field>type_property</field>
|
||||||
<name>type_property</name>
|
<name>type_property</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>property</table>
|
<table>property</table>
|
||||||
|
|
@ -141,23 +144,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>type_property</field>
|
<field>type_property</field>
|
||||||
<name>type_property</name>
|
<name>type_property</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>property</table>
|
<table>property</table>
|
||||||
|
|
@ -210,23 +216,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>type_property</field>
|
<field>type_property</field>
|
||||||
<name>type_property</name>
|
<name>type_property</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>property</table>
|
<table>property</table>
|
||||||
|
|
@ -279,23 +288,26 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>type_property</field>
|
<field>type_property</field>
|
||||||
<name>type_property</name>
|
<name>type_property</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>start_date</field>
|
<field>start_date</field>
|
||||||
<name>start_date</name>
|
<name>start_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>property</table>
|
<table>property</table>
|
||||||
|
|
|
||||||
|
|
@ -42,18 +42,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>create_date</field>
|
<field>create_date</field>
|
||||||
<name>create_date</name>
|
<name>create_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>prosecution</table>
|
<table>prosecution</table>
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>punishment</table>
|
<table>punishment</table>
|
||||||
|
|
|
||||||
|
|
@ -47,18 +47,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>recruit_id</field>
|
<field>recruit_id</field>
|
||||||
<name>recruit_id</name>
|
<name>recruit_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>full_name</field>
|
<field>full_name</field>
|
||||||
<name>full_name</name>
|
<name>full_name</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>citizen_spouse</table>
|
<table>citizen_spouse</table>
|
||||||
|
|
|
||||||
|
|
@ -42,18 +42,20 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>subpoena_id</field>
|
<field>subpoena_id</field>
|
||||||
<name>subpoena_id</name>
|
<name>subpoena_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>status_change_date</field>
|
<field>status_change_date</field>
|
||||||
<name>status_change_date</name>
|
<name>status_change_date</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>subpoena</table>
|
<table>subpoena</table>
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,14 @@
|
||||||
<method>none</method>
|
<method>none</method>
|
||||||
<schema_name/>
|
<schema_name/>
|
||||||
</partitioning>
|
</partitioning>
|
||||||
<commit>100</commit>
|
<commit>10000</commit>
|
||||||
<connection>ervu-dashboard</connection>
|
<connection>ervu-dashboard</connection>
|
||||||
<lookup>
|
<lookup>
|
||||||
<key>
|
<key>
|
||||||
<condition>=</condition>
|
<condition>=</condition>
|
||||||
<field>subpoena_id</field>
|
<field>subpoena_id</field>
|
||||||
<name>subpoena_id</name>
|
<name>subpoena_id</name>
|
||||||
|
<name2/>
|
||||||
</key>
|
</key>
|
||||||
<schema>ervu_dashboard</schema>
|
<schema>ervu_dashboard</schema>
|
||||||
<table>temporary_measures</table>
|
<table>temporary_measures</table>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,108 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<pipeline>
|
||||||
|
<info>
|
||||||
|
<name>deferment_reason_once</name>
|
||||||
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
||||||
|
<description/>
|
||||||
|
<extended_description/>
|
||||||
|
<pipeline_version/>
|
||||||
|
<pipeline_type>Normal</pipeline_type>
|
||||||
|
<parameters>
|
||||||
|
</parameters>
|
||||||
|
<capture_transform_performance>N</capture_transform_performance>
|
||||||
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
||||||
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
||||||
|
<created_user>-</created_user>
|
||||||
|
<created_date>2025/04/20 13:49:26.080</created_date>
|
||||||
|
<modified_user>-</modified_user>
|
||||||
|
<modified_date>2025/04/20 13:49:26.080</modified_date>
|
||||||
|
</info>
|
||||||
|
<notepads>
|
||||||
|
</notepads>
|
||||||
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>Table input 2</from>
|
||||||
|
<to>Table output</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Table input 2</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>select
|
||||||
|
code,
|
||||||
|
value,
|
||||||
|
true as actual
|
||||||
|
from ervu_reason_for_deferment
|
||||||
|
where hidden is false;</sql>
|
||||||
|
<variables_active>N</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>304</xloc>
|
||||||
|
<yloc>304</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>Table output</name>
|
||||||
|
<type>TableOutput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>N</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>1000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<fields>
|
||||||
|
<field>
|
||||||
|
<column_name>code</column_name>
|
||||||
|
<stream_name>code</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>value</column_name>
|
||||||
|
<stream_name>value</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>actual</column_name>
|
||||||
|
<stream_name>actual</stream_name>
|
||||||
|
</field>
|
||||||
|
</fields>
|
||||||
|
<ignore_errors>N</ignore_errors>
|
||||||
|
<only_when_have_rows>N</only_when_have_rows>
|
||||||
|
<partitioning_daily>N</partitioning_daily>
|
||||||
|
<partitioning_enabled>N</partitioning_enabled>
|
||||||
|
<partitioning_field/>
|
||||||
|
<partitioning_monthly>Y</partitioning_monthly>
|
||||||
|
<return_field/>
|
||||||
|
<return_keys>N</return_keys>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<specify_fields>Y</specify_fields>
|
||||||
|
<table>deferment_reason</table>
|
||||||
|
<tablename_field/>
|
||||||
|
<tablename_in_field>N</tablename_in_field>
|
||||||
|
<tablename_in_table>Y</tablename_in_table>
|
||||||
|
<truncate>N</truncate>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>528</xloc>
|
||||||
|
<yloc>304</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform_error_handling>
|
||||||
|
</transform_error_handling>
|
||||||
|
<attributes/>
|
||||||
|
</pipeline>
|
||||||
313
v1_apache-hop dash mapping/jobs_once_a_day/deferments_once.hpl
Normal file
313
v1_apache-hop dash mapping/jobs_once_a_day/deferments_once.hpl
Normal file
|
|
@ -0,0 +1,313 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<pipeline>
|
||||||
|
<info>
|
||||||
|
<name>deferments_once</name>
|
||||||
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
||||||
|
<description/>
|
||||||
|
<extended_description/>
|
||||||
|
<pipeline_version/>
|
||||||
|
<pipeline_type>Normal</pipeline_type>
|
||||||
|
<parameters>
|
||||||
|
</parameters>
|
||||||
|
<capture_transform_performance>N</capture_transform_performance>
|
||||||
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
||||||
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
||||||
|
<created_user>-</created_user>
|
||||||
|
<created_date>2025/04/20 11:21:19.116</created_date>
|
||||||
|
<modified_user>-</modified_user>
|
||||||
|
<modified_date>2025/04/20 11:21:19.116</modified_date>
|
||||||
|
</info>
|
||||||
|
<notepads>
|
||||||
|
</notepads>
|
||||||
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_right_input</from>
|
||||||
|
<to>deferment_right_output</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_input</from>
|
||||||
|
<to>deferment_output</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_right_output</from>
|
||||||
|
<to>Update</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_output</from>
|
||||||
|
<to>Update 2</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Update</name>
|
||||||
|
<type>Update</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>1000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<error_ignored>Y</error_ignored>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen</table>
|
||||||
|
<value>
|
||||||
|
<name>has_deferment_right</name>
|
||||||
|
<rename>has_deferment_right</rename>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<skip_lookup>N</skip_lookup>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>720</xloc>
|
||||||
|
<yloc>208</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>Update 2</name>
|
||||||
|
<type>Update</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>1000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<error_ignored>Y</error_ignored>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen</table>
|
||||||
|
<value>
|
||||||
|
<name>has_deferment</name>
|
||||||
|
<rename>has_active_deferment</rename>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>has_exemption</name>
|
||||||
|
<rename>has_exemption</rename>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<skip_lookup>N</skip_lookup>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>720</xloc>
|
||||||
|
<yloc>336</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>select
|
||||||
|
ddd.recruit_id,
|
||||||
|
ddd.decision_number,
|
||||||
|
ddd.type->>'value' as deferment_type,
|
||||||
|
ddd.decision_date as start_date,
|
||||||
|
ddd.postponement_date as end_date,
|
||||||
|
ddd.base_deferment as reason_code,
|
||||||
|
ddd.type->>'code' = '1' as has_active_deferment,
|
||||||
|
ddd.type->>'code' = '2' as has_exemption,
|
||||||
|
not ddd.hidden as active
|
||||||
|
from decision_deferment_dto ddd
|
||||||
|
join public.recruits r
|
||||||
|
ON r.id = ddd.recruit_id
|
||||||
|
AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||||
|
where hidden is false;</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>272</xloc>
|
||||||
|
<yloc>336</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_output</name>
|
||||||
|
<type>TableOutput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>20000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<fields>
|
||||||
|
<field>
|
||||||
|
<column_name>recruit_id</column_name>
|
||||||
|
<stream_name>recruit_id</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>decision_number</column_name>
|
||||||
|
<stream_name>decision_number</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>type</column_name>
|
||||||
|
<stream_name>deferment_type</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>start_date</column_name>
|
||||||
|
<stream_name>start_date</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>end_date</column_name>
|
||||||
|
<stream_name>end_date</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>reason_code</column_name>
|
||||||
|
<stream_name>reason_code</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>active</column_name>
|
||||||
|
<stream_name>active</stream_name>
|
||||||
|
</field>
|
||||||
|
</fields>
|
||||||
|
<ignore_errors>N</ignore_errors>
|
||||||
|
<only_when_have_rows>N</only_when_have_rows>
|
||||||
|
<partitioning_daily>N</partitioning_daily>
|
||||||
|
<partitioning_enabled>N</partitioning_enabled>
|
||||||
|
<partitioning_field/>
|
||||||
|
<partitioning_monthly>Y</partitioning_monthly>
|
||||||
|
<return_field/>
|
||||||
|
<return_keys>N</return_keys>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<specify_fields>Y</specify_fields>
|
||||||
|
<table>citizen_deferment</table>
|
||||||
|
<tablename_field/>
|
||||||
|
<tablename_in_field>N</tablename_in_field>
|
||||||
|
<tablename_in_table>Y</tablename_in_table>
|
||||||
|
<truncate>N</truncate>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>544</xloc>
|
||||||
|
<yloc>336</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_right_input</name>
|
||||||
|
<type>TableInput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<connection>ervu_person_registry</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>select
|
||||||
|
rd.recruit_id,
|
||||||
|
rd.date_of_information as start_date,
|
||||||
|
rd.postponement_date as end_date,
|
||||||
|
erfd.code,
|
||||||
|
true as has_deferment_right
|
||||||
|
from recruits_deferment rd
|
||||||
|
join ervu_reason_for_deferment erfd
|
||||||
|
on erfd.id = rd.ervu_reason_for_deferment_id
|
||||||
|
join public.recruits r
|
||||||
|
ON r.id = rd.recruit_id
|
||||||
|
AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||||
|
where rd.hidden is false;</sql>
|
||||||
|
<variables_active>Y</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>272</xloc>
|
||||||
|
<yloc>208</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform>
|
||||||
|
<name>deferment_right_output</name>
|
||||||
|
<type>TableOutput</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>20000</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<fields>
|
||||||
|
<field>
|
||||||
|
<column_name>recruit_id</column_name>
|
||||||
|
<stream_name>recruit_id</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>start_date</column_name>
|
||||||
|
<stream_name>start_date</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>end_date</column_name>
|
||||||
|
<stream_name>end_date</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>code</column_name>
|
||||||
|
<stream_name>code</stream_name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<column_name>actual</column_name>
|
||||||
|
<stream_name>has_deferment_right</stream_name>
|
||||||
|
</field>
|
||||||
|
</fields>
|
||||||
|
<ignore_errors>N</ignore_errors>
|
||||||
|
<only_when_have_rows>N</only_when_have_rows>
|
||||||
|
<partitioning_daily>N</partitioning_daily>
|
||||||
|
<partitioning_enabled>N</partitioning_enabled>
|
||||||
|
<partitioning_field/>
|
||||||
|
<partitioning_monthly>Y</partitioning_monthly>
|
||||||
|
<return_field/>
|
||||||
|
<return_keys>N</return_keys>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<specify_fields>Y</specify_fields>
|
||||||
|
<table>citizen_deferment_right</table>
|
||||||
|
<tablename_field/>
|
||||||
|
<tablename_in_field>N</tablename_in_field>
|
||||||
|
<tablename_in_table>Y</tablename_in_table>
|
||||||
|
<truncate>N</truncate>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>544</xloc>
|
||||||
|
<yloc>208</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
|
<transform_error_handling>
|
||||||
|
</transform_error_handling>
|
||||||
|
<attributes/>
|
||||||
|
</pipeline>
|
||||||
|
|
@ -1183,14 +1183,11 @@
|
||||||
<create_parent_folder>N</create_parent_folder>
|
<create_parent_folder>N</create_parent_folder>
|
||||||
<exec_per_row>Y</exec_per_row>
|
<exec_per_row>Y</exec_per_row>
|
||||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_education_diplomas_received_once.hpl</filename>
|
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_education_diplomas_received_once.hpl</filename>
|
||||||
<logext/>
|
|
||||||
<logfile/>
|
|
||||||
<loglevel>Basic</loglevel>
|
<loglevel>Basic</loglevel>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter>
|
<parameter>
|
||||||
<name>RCRT_C</name>
|
<name>RCRT_C</name>
|
||||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||||
<value/>
|
|
||||||
</parameter>
|
</parameter>
|
||||||
<pass_all_parameters>Y</pass_all_parameters>
|
<pass_all_parameters>Y</pass_all_parameters>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
@ -1216,14 +1213,11 @@
|
||||||
<create_parent_folder>N</create_parent_folder>
|
<create_parent_folder>N</create_parent_folder>
|
||||||
<exec_per_row>Y</exec_per_row>
|
<exec_per_row>Y</exec_per_row>
|
||||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_work_activity_once.hpl</filename>
|
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_work_activity_once.hpl</filename>
|
||||||
<logext/>
|
|
||||||
<logfile/>
|
|
||||||
<loglevel>Basic</loglevel>
|
<loglevel>Basic</loglevel>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter>
|
<parameter>
|
||||||
<name>RCRT_C</name>
|
<name>RCRT_C</name>
|
||||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||||
<value/>
|
|
||||||
</parameter>
|
</parameter>
|
||||||
<pass_all_parameters>Y</pass_all_parameters>
|
<pass_all_parameters>Y</pass_all_parameters>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
@ -1517,6 +1511,86 @@
|
||||||
<yloc>960</yloc>
|
<yloc>960</yloc>
|
||||||
<attributes_hac/>
|
<attributes_hac/>
|
||||||
</action>
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>SQL.citizen_deferments</name>
|
||||||
|
<description/>
|
||||||
|
<type>SQL</type>
|
||||||
|
<attributes/>
|
||||||
|
<connection/>
|
||||||
|
<sendOneStatement>N</sendOneStatement>
|
||||||
|
<sql>delete from ervu_dashboard.citizen_deferment_right;
|
||||||
|
delete from ervu_dashboard.citizen_deferment;
|
||||||
|
</sql>
|
||||||
|
<sqlfilename/>
|
||||||
|
<sqlfromfile>N</sqlfromfile>
|
||||||
|
<useVariableSubstitution>N</useVariableSubstitution>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>640</xloc>
|
||||||
|
<yloc>2112</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>deferments_once.hpl</name>
|
||||||
|
<description/>
|
||||||
|
<type>PIPELINE</type>
|
||||||
|
<attributes/>
|
||||||
|
<add_date>N</add_date>
|
||||||
|
<add_time>N</add_time>
|
||||||
|
<clear_files>N</clear_files>
|
||||||
|
<clear_rows>N</clear_rows>
|
||||||
|
<create_parent_folder>N</create_parent_folder>
|
||||||
|
<exec_per_row>N</exec_per_row>
|
||||||
|
<filename>${PROJECT_HOME}/jobs_once_a_day/deferments_once.hpl</filename>
|
||||||
|
<loglevel>Basic</loglevel>
|
||||||
|
<parameters>
|
||||||
|
<pass_all_parameters>Y</pass_all_parameters>
|
||||||
|
</parameters>
|
||||||
|
<params_from_previous>N</params_from_previous>
|
||||||
|
<run_configuration>local</run_configuration>
|
||||||
|
<set_append_logfile>N</set_append_logfile>
|
||||||
|
<set_logfile>N</set_logfile>
|
||||||
|
<wait_until_finished>Y</wait_until_finished>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>1184</xloc>
|
||||||
|
<yloc>2112</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>Success</name>
|
||||||
|
<description/>
|
||||||
|
<type>SUCCESS</type>
|
||||||
|
<attributes/>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>1408</xloc>
|
||||||
|
<yloc>2112</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<name>deferment_reason_once.hpl</name>
|
||||||
|
<description/>
|
||||||
|
<type>PIPELINE</type>
|
||||||
|
<attributes/>
|
||||||
|
<add_date>N</add_date>
|
||||||
|
<add_time>N</add_time>
|
||||||
|
<clear_files>N</clear_files>
|
||||||
|
<clear_rows>N</clear_rows>
|
||||||
|
<create_parent_folder>N</create_parent_folder>
|
||||||
|
<exec_per_row>N</exec_per_row>
|
||||||
|
<filename>${PROJECT_HOME}/jobs_once_a_day/deferment_reason_once.hpl</filename>
|
||||||
|
<loglevel>Basic</loglevel>
|
||||||
|
<parameters>
|
||||||
|
<pass_all_parameters>Y</pass_all_parameters>
|
||||||
|
</parameters>
|
||||||
|
<params_from_previous>N</params_from_previous>
|
||||||
|
<run_configuration>local</run_configuration>
|
||||||
|
<set_append_logfile>N</set_append_logfile>
|
||||||
|
<set_logfile>N</set_logfile>
|
||||||
|
<wait_until_finished>Y</wait_until_finished>
|
||||||
|
<parallel>N</parallel>
|
||||||
|
<xloc>896</xloc>
|
||||||
|
<yloc>2112</yloc>
|
||||||
|
<attributes_hac/>
|
||||||
|
</action>
|
||||||
</actions>
|
</actions>
|
||||||
<hops>
|
<hops>
|
||||||
<hop>
|
<hop>
|
||||||
|
|
@ -1963,35 +2037,35 @@
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.opekun</to>
|
<to>SQL.opekun</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.citizen</to>
|
<to>SQL.citizen</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.drivers_licence</to>
|
<to>SQL.drivers_licence</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.child</to>
|
<to>SQL.child</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.spouse</to>
|
<to>SQL.spouse</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
|
@ -2019,49 +2093,49 @@
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.property</to>
|
<to>SQL.property</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.citizen_foreign</to>
|
<to>SQL.citizen_foreign</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.citizenship</to>
|
<to>SQL.citizenship</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.deputy</to>
|
<to>SQL.deputy</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.prosecution</to>
|
<to>SQL.prosecution</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.punishment</to>
|
<to>SQL.punishment</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>recruitment_rows.hpl</from>
|
<from>recruitment_rows.hpl</from>
|
||||||
<to>SQL.passport</to>
|
<to>SQL.passport</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
|
@ -2096,14 +2170,14 @@
|
||||||
<hop>
|
<hop>
|
||||||
<from>Start</from>
|
<from>Start</from>
|
||||||
<to>SQL.subpoena</to>
|
<to>SQL.subpoena</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>Y</unconditional>
|
<unconditional>Y</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
<hop>
|
<hop>
|
||||||
<from>Start</from>
|
<from>Start</from>
|
||||||
<to>SQL.tempmeas</to>
|
<to>SQL.tempmeas</to>
|
||||||
<enabled>Y</enabled>
|
<enabled>N</enabled>
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>Y</unconditional>
|
<unconditional>Y</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
|
@ -2114,6 +2188,34 @@
|
||||||
<evaluation>Y</evaluation>
|
<evaluation>Y</evaluation>
|
||||||
<unconditional>N</unconditional>
|
<unconditional>N</unconditional>
|
||||||
</hop>
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>SQL.citizen_deferments</from>
|
||||||
|
<to>deferment_reason_once.hpl</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>Y</evaluation>
|
||||||
|
<unconditional>N</unconditional>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferments_once.hpl</from>
|
||||||
|
<to>Success</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>N</evaluation>
|
||||||
|
<unconditional>Y</unconditional>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>deferment_reason_once.hpl</from>
|
||||||
|
<to>deferments_once.hpl</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>Y</evaluation>
|
||||||
|
<unconditional>N</unconditional>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>recruitment_rows.hpl</from>
|
||||||
|
<to>SQL.citizen_deferments</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
<evaluation>Y</evaluation>
|
||||||
|
<unconditional>N</unconditional>
|
||||||
|
</hop>
|
||||||
</hops>
|
</hops>
|
||||||
<notepads>
|
<notepads>
|
||||||
<notepad>
|
<notepad>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue