citizen info
This commit is contained in:
parent
81e81a8790
commit
c9bcaa0b03
21 changed files with 779 additions and 475 deletions
103
v1_apache-hop dash mapping/connections/db_uat_to_here_mln.json
Normal file
103
v1_apache-hop dash mapping/connections/db_uat_to_here_mln.json
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
{
|
||||
"variables" : [ {
|
||||
"name" : "DB_PERSON_HOST",
|
||||
"value" : "10.10.30.118",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_PERSON_PORT",
|
||||
"value" : "5432",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_PERSON_NAME",
|
||||
"value" : "ervu_person_registry",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_PERSON_USERNAME",
|
||||
"value" : "ervu_person_registry",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_PERSON_PASSWORD",
|
||||
"value" : "ervu_person_registry",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DASHBOARD_HOST",
|
||||
"value" : "10.10.31.119",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DASHBOARD_PORT",
|
||||
"value" : "5432",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DASHBOARD_NAME",
|
||||
"value" : "ervu-dashboard-recr",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DASHBOARD_USERNAME",
|
||||
"value" : "ervu-dashboard",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DASHBOARD_PASSWORD",
|
||||
"value" : "ervu-dashboard",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_APPEAL_HOST",
|
||||
"value" : "10.65.244.45",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_APPEAL_PORT",
|
||||
"value" : "6432",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_APPEAL_NAME",
|
||||
"value" : "ervu_appeal_document",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_APPEAL_USERNAME",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_APPEAL_PASSWORD",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DECISION_HOST",
|
||||
"value" : "10.65.244.45",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DECISION_PORT",
|
||||
"value" : "6432",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DECISION_NAME",
|
||||
"value" : "ervu_decision_document",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DECISION_USERNAME",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_DECISION_PASSWORD",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_SUBPOENA_HOST",
|
||||
"value" : "10.65.244.45",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_SUBPOENA_PORT",
|
||||
"value" : "6432",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_SUBPOENA_NAME",
|
||||
"value" : "ervu_subpoena_registry",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_SUBPOENA_USERNAME",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
}, {
|
||||
"name" : "DB_SUBPOENA_PASSWORD",
|
||||
"value" : "readonly",
|
||||
"description" : ""
|
||||
} ]
|
||||
}
|
||||
|
|
@ -113,7 +113,9 @@
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedDeti'->'rebenok') ch,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedDeti'->'rebenok') = 'array')
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedDeti'->'rebenok') = 'array'
|
||||
)
|
||||
select
|
||||
r.id::uuid recruit_id,
|
||||
ch->>'naimRodstvSvyazReb' kinship_type,
|
||||
|
|
@ -130,7 +132,7 @@ select
|
|||
ch->'svedAZRozhd'->>'nomerZapis' birth_az_number
|
||||
from public.recruits r
|
||||
join child on r.id = child.recruit_id</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>400</xloc>
|
||||
|
|
@ -148,7 +150,7 @@ join child on r.id = child.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedVUZ'->'vuz') as vuz,
|
||||
ri.recruit_id recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedVUZ'->'vuz') = 'array' --limit 2
|
||||
)
|
||||
select
|
||||
|
|
@ -79,7 +80,7 @@ select
|
|||
from public.recruits r
|
||||
join vuz on r.id = vuz.recruit_id
|
||||
</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>496</xloc>
|
||||
|
|
@ -97,7 +98,7 @@ join vuz on r.id = vuz.recruit_id
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedIGPP'->'svedIG') cit,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedIGPP'->'svedIG') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -57,7 +58,7 @@ select
|
|||
to_date(cit->>'dataPriobrIG', 'YYYY-MM-DD') citizenship_date
|
||||
from public.recruits r
|
||||
join citizen on r.id = citizen.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -82,6 +83,7 @@ join citizen on r.id = citizen.recruit_id;</sql>
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedIGPP'->'svedPP') cit,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedIGPP'->'svedPP') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -90,7 +92,7 @@ select
|
|||
to_date(cit->>'dataPriobrPP', 'YYYY-MM-DD') residense_right_date
|
||||
from public.recruits r
|
||||
join citizen on r.id = citizen.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -108,7 +110,7 @@ join citizen on r.id = citizen.recruit_id;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -145,7 +147,7 @@ join citizen on r.id = citizen.recruit_id;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
</partitioning>
|
||||
<connection>ervu_person_registry</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit/>
|
||||
<sql>SELECT recruit_id,
|
||||
(sport_info->'sportRazr'->>'dataPrisv')::date start_date_category,
|
||||
(sport_info->'sportRazr'->>'dataDeistv')::date as end_date_category,
|
||||
|
|
@ -54,11 +55,12 @@
|
|||
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 r,
|
||||
jsonb_array_elements(r.info->'svedFL'->'svedSport'->'sport') AS sport_info
|
||||
FROM public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}'),
|
||||
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>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -108,14 +110,11 @@ WHERE info->'svedFL'->'svedSport'->>'sport' != 'null'
|
|||
<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_sports_categories</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -50,10 +50,10 @@ ri.info->'svedFL'->'svedGrazhdanRF'->'grazhdanRF'->>'nomReshVyh' renunciation_nu
|
|||
to_date(ri.info->'svedFL'->'svedGrazhdanRF'->'grazhdanRF'->>'dataReshVyh', 'YYYY-MM-DD') renunciation_date,
|
||||
ri.info->'svedFL'->'svedGrazhdanRF'->'grazhdanRF'->>'organReshVyh' renunciation_authority
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON ri.recruit_id = r.id
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedFL'->'svedGrazhdanRF'->>'prOtsGrazhdanRF' is null and
|
||||
(ri.info->'svedFL'->'svedGrazhdanRF'->'grazhdanRF'->>'nomReshPriob' is not null or ri.info->'svedGrazhdanRF'->'grazhdanRF'->>'osnVyh' is not null)</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>432</xloc>
|
||||
|
|
@ -71,7 +71,7 @@ where ri.info->'svedFL'->'svedGrazhdanRF'->>'prOtsGrazhdanRF' is null and
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -79,14 +79,11 @@ where ri.info->'svedFL'->'svedGrazhdanRF'->>'prOtsGrazhdanRF' is null and
|
|||
<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>N</specify_fields>
|
||||
<table>citizenship</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -104,9 +104,9 @@ ri.info->'svedFL'->'svedDeputat'->'deputat'->>'srokiPolnomochii' period_office,
|
|||
to_date(ri.info->'svedFL'->'svedDeputat'->'deputat'->>'dataDosrochPrekr', 'YYYY-MM-DD') end_date,
|
||||
ri.info->'svedFL'->'svedDeputat'->'deputat'->>'svedIzbrDeputatom' information
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON ri.recruit_id = r.id
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedFL'->'svedDeputat'->'deputat'->>'svedIzbrDeputatom' is not null;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>432</xloc>
|
||||
|
|
@ -132,9 +132,9 @@ to_date(ri.info->'svedFL'->'svedKandidat'->'kandidat'->>'dataSnyatKandidat', 'YY
|
|||
ri.info->'svedFL'->'svedKandidat'->'kandidat'->>'svedRegKandidata' information,
|
||||
false deputy
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON ri.recruit_id = r.id
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedFL'->'svedKandidat'->>'kandidat' is not null</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>432</xloc>
|
||||
|
|
@ -152,7 +152,7 @@ where ri.info->'svedFL'->'svedKandidat'->>'kandidat' is not null</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -160,14 +160,11 @@ where ri.info->'svedFL'->'svedKandidat'->>'kandidat' is not null</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>deputy</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
@ -189,7 +186,7 @@ where ri.info->'svedFL'->'svedKandidat'->>'kandidat' is not null</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -197,14 +194,11 @@ where ri.info->'svedFL'->'svedKandidat'->>'kandidat' is not null</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>deputy</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -57,10 +57,10 @@
|
|||
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,
|
||||
true disability
|
||||
from public.recruits r
|
||||
join public.recruits_info ri on r.id = ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa' is not null;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -86,10 +86,10 @@ where ri.info->'svedFL'->'svedInvalid'->'invalid'->>'gruppa' is not null;</sql>
|
|||
ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' organization_name,
|
||||
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataPrisv', 'YYYY-MM-DD') start_date,
|
||||
to_date(ri.info->'svedNedeesp'->'nedeesposob'->>'dataOtmeny', 'YYYY-MM-DD') close_date
|
||||
from public.recruits r
|
||||
join public.recruits_info ri on r.id = ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -107,7 +107,7 @@ where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -115,14 +115,11 @@ where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null;</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>disability</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
@ -144,7 +141,7 @@ where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -152,14 +149,11 @@ where ri.info->'svedNedeesp'->'nedeesposob'->>'naimSud' is not null;</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>disability</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -41,10 +41,13 @@
|
|||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>with zdorov as
|
||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') z,
|
||||
(select
|
||||
jsonb_array_elements(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') z,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') = 'array')
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedSostZdorov'->'svedZdorov'->'sostZdorov') = 'array'
|
||||
)
|
||||
select
|
||||
r.id recruit_id,
|
||||
z->>'kodZabol' code,
|
||||
|
|
@ -52,7 +55,7 @@ select
|
|||
to_date(z->>'dataDiagn', 'YYYY-MM-DD') reg_date
|
||||
from public.recruits r
|
||||
join zdorov on r.id = zdorov.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -70,7 +73,7 @@ join zdorov on r.id = zdorov.recruit_id;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -78,14 +81,11 @@ join zdorov on r.id = zdorov.recruit_id;</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>disease</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -56,9 +56,9 @@
|
|||
from jsonb_array_elements(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') as kat
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'), ',') categories
|
||||
from public.recruits r
|
||||
join public.recruits_info ri on r.id = ri.recruit_id
|
||||
join public.recruits_info ri on r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -94,9 +94,9 @@ where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat')
|
|||
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'), ',') categories,
|
||||
true tractor_driver
|
||||
from public.recruits r
|
||||
join public.recruits_info ri on r.id = ri.recruit_id
|
||||
join public.recruits_info ri on r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM' is not null</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -114,7 +114,7 @@ where ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM' is not
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -151,7 +151,7 @@ where ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM' is not
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -608,7 +608,7 @@ base_recruit_data AS (
|
|||
) AS number_children
|
||||
FROM public.recruits AS r
|
||||
LEFT JOIN public.decision_deferment_dto ddd ON ddd.recruit_id = r.id and ddd.hidden is false
|
||||
JOIN public.recruits_info AS ri ON ri.recruit_id = r.id
|
||||
JOIN public.recruits_info AS ri ON ri.recruit_id = r.id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
JOIN public.military_registration_reason AS mrr ON r.registration_reasons::jsonb @> to_jsonb(mrr.code::text)
|
||||
--JOIN public.recruits_history rh on rh.recruit_id=r.id
|
||||
),
|
||||
|
|
@ -626,6 +626,7 @@ FROM
|
|||
public.recruits AS r
|
||||
LEFT JOIN
|
||||
LATERAL jsonb_array_elements(r.addresses) AS addr ON true
|
||||
WHERE r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}'
|
||||
GROUP BY
|
||||
r.id
|
||||
),
|
||||
|
|
@ -757,7 +758,7 @@ FROM base_recruit_data r
|
|||
LEFT JOIN children_count cc ON r.recruit_id = cc.recruit_id -- Присоединение для получения количества детей
|
||||
JOIN driver_license dl ON dl.recruit_id = r.recruit_id
|
||||
join adresses adr ON r.recruit_id=adr.recruit_id</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -783,14 +784,11 @@ join adresses adr ON r.recruit_id=adr.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>citizen</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
<schedulerType>0</schedulerType>
|
||||
<weekDay>1</weekDay>
|
||||
<parallel>N</parallel>
|
||||
<xloc>176</xloc>
|
||||
<yloc>944</yloc>
|
||||
<xloc>0</xloc>
|
||||
<yloc>960</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -38,17 +38,21 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/info_recruits_once.hpl</filename>
|
||||
<logext>txt</logext>
|
||||
<logfile>${PROJECT_HOME}/log_jobs/log_job_info_recruits_once</logfile>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -121,15 +125,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/spouse_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -147,15 +155,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/child_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -188,15 +200,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/disease_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -229,15 +245,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/medical_authorities_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -270,15 +290,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/disability_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -311,15 +335,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/drivers_licence_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -352,15 +380,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/property_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -393,15 +425,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_foreign_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -434,15 +470,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizenship_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -475,15 +515,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/deputy_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -516,15 +560,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/prosecution_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -557,15 +605,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/punishment_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -598,15 +650,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/passport_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -639,7 +695,7 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<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/subpoena_once.hpl</filename>
|
||||
|
|
@ -680,7 +736,7 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<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/temporary_measure_once.hpl</filename>
|
||||
|
|
@ -706,15 +762,19 @@
|
|||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<clear_files>N</clear_files>
|
||||
<clear_rows>Y</clear_rows>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/opekun_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -1091,13 +1151,17 @@
|
|||
<clear_files>N</clear_files>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_sports_categories_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -1117,13 +1181,17 @@
|
|||
<clear_files>N</clear_files>
|
||||
<clear_rows>N</clear_rows>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<exec_per_row>Y</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/jobs_once_a_day/citizen_education_diplomas_received_once.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
|
|
@ -1409,15 +1477,38 @@
|
|||
<yloc>2032</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
<name>recruitment_rows.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/supportive_jobs/recruitment_rows.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>RCRT_C</name>
|
||||
<stream_name>RECRUITMENT_CITIZEN</stream_name>
|
||||
</parameter>
|
||||
<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>Y</parallel>
|
||||
<xloc>208</xloc>
|
||||
<yloc>960</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
</actions>
|
||||
<hops>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.citizen</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>SQL.citizen</from>
|
||||
<to>info_recruits_once.hpl</to>
|
||||
|
|
@ -1530,13 +1621,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.opekun</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>SQL.opekun</from>
|
||||
<to>opekun_once.hpl</to>
|
||||
|
|
@ -1551,111 +1635,6 @@
|
|||
<evaluation>N</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.spouse</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.child</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.disease</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.medical_authorities</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.property</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.disability</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.drivers_licence</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.citizen_foreign</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.citizenship</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.deputy</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.prosecution</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.punishment</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.passport</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.subpoena</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.tempmeas</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>info_recruits_once.hpl</from>
|
||||
<to>Success info_recruits_once</to>
|
||||
|
|
@ -1859,13 +1838,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.citizen_education_diplomas_received</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>SQL.citizen_sports_categories</from>
|
||||
<to>citizen_sports_categories_once.hpl</to>
|
||||
|
|
@ -1873,13 +1845,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.citizen_sports_categories</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>SQL.citizen_criminal_record</from>
|
||||
<to>citizen_criminal_record_once.hpl</to>
|
||||
|
|
@ -1978,8 +1943,182 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>recruitment_rows.hpl</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.opekun</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.citizen</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.drivers_licence</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.child</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.spouse</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.disease</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.medical_authorities</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.disability</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.property</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.citizen_foreign</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.citizenship</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.deputy</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.prosecution</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.punishment</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.passport</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.subpoena</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.tempmeas</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.citizen_education_diplomas_received</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>recruitment_rows.hpl</from>
|
||||
<to>SQL.citizen_sports_categories</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.subpoena</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>SQL.tempmeas</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
</hops>
|
||||
<notepads>
|
||||
<notepad>
|
||||
<backgroundcolorblue>251</backgroundcolorblue>
|
||||
<backgroundcolorgreen>232</backgroundcolorgreen>
|
||||
<backgroundcolorred>201</backgroundcolorred>
|
||||
<bordercolorblue>90</bordercolorblue>
|
||||
<bordercolorgreen>58</bordercolorgreen>
|
||||
<bordercolorred>14</bordercolorred>
|
||||
<fontbold>N</fontbold>
|
||||
<fontcolorblue>90</fontcolorblue>
|
||||
<fontcolorgreen>58</fontcolorgreen>
|
||||
<fontcolorred>14</fontcolorred>
|
||||
<fontitalic>N</fontitalic>
|
||||
<fontname>Segoe UI</fontname>
|
||||
<fontsize>9</fontsize>
|
||||
<height>26</height>
|
||||
<xloc>80</xloc>
|
||||
<yloc>880</yloc>
|
||||
<note>без лимитов не запускать</note>
|
||||
<width>152</width>
|
||||
</notepad>
|
||||
</notepads>
|
||||
<attributes/>
|
||||
</workflow>
|
||||
|
|
|
|||
|
|
@ -46,10 +46,13 @@
|
|||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>with uchet as
|
||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') u,
|
||||
(select
|
||||
jsonb_array_elements(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') = 'array')
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedPND'->'svedUchetDisp'->'svedUchet') = 'array'
|
||||
)
|
||||
select
|
||||
r.id recruit_id,
|
||||
u->>'dataPostUchet' start_date,
|
||||
|
|
@ -57,7 +60,7 @@ select
|
|||
u->>'dataPlan' change_date
|
||||
from public.recruits r
|
||||
join uchet on r.id = uchet.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -79,10 +82,13 @@ join uchet on r.id = uchet.recruit_id;</sql>
|
|||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>with uchet as
|
||||
(select jsonb_array_elements(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') u,
|
||||
(select
|
||||
jsonb_array_elements(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') = 'array')
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedUchetVICH'->'uchetVICH') = 'array'
|
||||
)
|
||||
select
|
||||
r.id recruit_id,
|
||||
to_date(u->>'dataPostUchet', 'YYYY-MM-DD') start_date,
|
||||
|
|
@ -90,7 +96,7 @@ select
|
|||
true HIV
|
||||
from public.recruits r
|
||||
join uchet on r.id = uchet.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -108,7 +114,7 @@ join uchet on r.id = uchet.recruit_id;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -142,7 +148,7 @@ join uchet on r.id = uchet.recruit_id;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -150,14 +156,11 @@ join uchet on r.id = uchet.recruit_id;</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>medical_authorities</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedOpekun'->'svedSoczPod') ch,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedOpekun'->'svedSoczPod') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -109,8 +110,9 @@ select
|
|||
NULLIF(ch->'dataRozhdDok'->>'den','')::int) birth_date,
|
||||
ch->>'snils' snils
|
||||
from public.recruits r
|
||||
join person on r.id = person.recruit_id</sql>
|
||||
<variables_active>N</variables_active>
|
||||
join person on r.id = person.recruit_id
|
||||
</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>288</xloc>
|
||||
|
|
@ -128,7 +130,7 @@ join person on r.id = person.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -136,14 +138,11 @@ join person on r.id = person.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>citizen_guardianship</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -57,11 +57,11 @@
|
|||
THEN TRUE ELSE FALSE
|
||||
END AS actual
|
||||
FROM public.recruits_info ri
|
||||
JOIN public.recruits r ON ri.recruit_id = r.id
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
WHERE ri.info->'svedFL'->'svedBS'->'pasportRF'->'aktPasportRF'->>'nomDok' IS NOT NULL
|
||||
AND LENGTH(ri.info->'svedFL'->'svedBS'->'pasportRF'->'aktPasportRF'->>'serDok') = 4
|
||||
AND LENGTH(ri.info->'svedFL'->'svedBS'->'pasportRF'->'aktPasportRF'->>'nomDok') = 6;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>208</xloc>
|
||||
|
|
@ -112,7 +112,7 @@ where ri.info->'pasportRF'->'predPasportRF'->>'nomDok' is not null;</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedON'->'on') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedON'->'on') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -69,7 +70,7 @@ select
|
|||
'realty' type_property
|
||||
from public.recruits r
|
||||
join prop on r.id = prop.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>480</xloc>
|
||||
|
|
@ -94,6 +95,7 @@ join prop on r.id = prop.recruit_id;</sql>
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedNazTS'->'nazTS') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedNazTS'->'nazTS') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -107,7 +109,7 @@ select
|
|||
'ground_transportation' type_property
|
||||
from public.recruits r
|
||||
join prop on r.id = prop.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>480</xloc>
|
||||
|
|
@ -132,6 +134,7 @@ join prop on r.id = prop.recruit_id;</sql>
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedVozTS'->'vozTS') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedVozTS'->'vozTS') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -142,7 +145,7 @@ select
|
|||
'air_vehicles' type_property
|
||||
from public.recruits r
|
||||
join prop on r.id = prop.recruit_id;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>480</xloc>
|
||||
|
|
@ -167,6 +170,7 @@ join prop on r.id = prop.recruit_id;</sql>
|
|||
(select jsonb_array_elements(ri.info->'svedFL'->'svedVodTS'->'vodTS') u,
|
||||
ri.recruit_id
|
||||
from public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
where jsonb_typeof(ri.info->'svedFL'->'svedVodTS'->'vodTS') = 'array')
|
||||
select
|
||||
r.id recruit_id,
|
||||
|
|
@ -177,7 +181,7 @@ select
|
|||
'water_vehicles' type_property
|
||||
from public.recruits r
|
||||
join prop on r.id = prop.recruit_id</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>480</xloc>
|
||||
|
|
@ -195,7 +199,7 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -203,14 +207,11 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>property</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
@ -232,7 +233,7 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -240,14 +241,11 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>property</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
@ -269,7 +267,7 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -277,14 +275,11 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>property</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
@ -306,7 +301,7 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -314,14 +309,11 @@ join prop on r.id = prop.recruit_id</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>property</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ ugolov_presl AS (
|
|||
ri.recruit_id
|
||||
--'prOtsSvedUgolovPresl'
|
||||
FROM public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
WHERE jsonb_typeof(ri.info->'svedFL'->'svedUgolovPresl'->'faktyUgolovPresl') = 'array'
|
||||
)
|
||||
SELECT
|
||||
|
|
@ -118,7 +119,7 @@ FROM public.recruits r
|
|||
JOIN ugolov_presl up ON r.id = up.recruit_id
|
||||
LEFT JOIN LATERAL jsonb_array_elements_text(up->'sledSud'->'statiUK') AS law(f) ON true
|
||||
GROUP BY r.id, up</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>432</xloc>
|
||||
|
|
@ -136,7 +137,7 @@ GROUP BY r.id, up</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -144,11 +145,14 @@ GROUP BY r.id, up</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>prosecution</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ nakaz AS (
|
|||
jsonb_array_elements(ri.info->'svedFL'->'svedNakaz'->'nakaz') AS nz,
|
||||
ri.recruit_id
|
||||
FROM public.recruits_info ri
|
||||
join public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
WHERE jsonb_typeof(ri.info->'svedFL'->'svedNakaz'->'nakaz') = 'array'
|
||||
)
|
||||
SELECT
|
||||
|
|
@ -134,7 +135,7 @@ FROM public.recruits r
|
|||
JOIN nakaz nz ON r.id = nz.recruit_id
|
||||
LEFT JOIN LATERAL jsonb_array_elements_text(nz->'statiUK') AS law(f) ON true
|
||||
GROUP BY r.id, nz</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>528</xloc>
|
||||
|
|
@ -152,7 +153,7 @@ GROUP BY r.id, nz</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
@ -160,11 +161,14 @@ GROUP BY r.id, nz</sql>
|
|||
<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>N</specify_fields>
|
||||
<table>punishment</table>
|
||||
<tablename_field/>
|
||||
<tablename_in_field>N</tablename_in_field>
|
||||
<tablename_in_table>Y</tablename_in_table>
|
||||
<truncate>N</truncate>
|
||||
|
|
|
|||
|
|
@ -206,6 +206,7 @@
|
|||
END AS information_excluded,
|
||||
ri.recruit_id
|
||||
FROM public.recruits_info ri
|
||||
JOIN public.recruits r ON r.id = ri.recruit_id AND (r.target_recruitment_id= '${RCRT_C}' or r.current_recruitment_id = '${RCRT_C}')
|
||||
JOIN LATERAL (
|
||||
SELECT jsonb_array_elements(ri.info->'svedFL'->'svedSemPolozh'->'suprugi') AS supri
|
||||
WHERE jsonb_typeof(ri.info->'svedFL'->'svedSemPolozh'->'suprugi') = 'array'
|
||||
|
|
@ -233,7 +234,7 @@ SELECT
|
|||
information_excluded
|
||||
FROM public.recruits r
|
||||
JOIN suprug ON r.id = suprug.recruit_id</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>192</xloc>
|
||||
|
|
@ -251,7 +252,7 @@ JOIN suprug ON r.id = suprug.recruit_id</sql>
|
|||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<commit>5000</commit>
|
||||
<commit>1000</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<fields>
|
||||
</fields>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pipeline>
|
||||
<info>
|
||||
<name>recruitment_rows</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/18 09:48:01.970</created_date>
|
||||
<modified_user>-</modified_user>
|
||||
<modified_date>2025/04/18 09:48:01.970</modified_date>
|
||||
</info>
|
||||
<notepads>
|
||||
</notepads>
|
||||
<order>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Copy rows to result</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Copy rows to result</name>
|
||||
<type>RowsToResult</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>832</xloc>
|
||||
<yloc>304</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-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>SELECT idm_id AS RECRUITMENT_CITIZEN FROM ervu_dashboard.recruitment
|
||||
--limit 3</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>464</xloc>
|
||||
<yloc>304</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform_error_handling>
|
||||
</transform_error_handling>
|
||||
<attributes/>
|
||||
</pipeline>
|
||||
|
|
@ -90,95 +90,95 @@
|
|||
JOIN
|
||||
ervu_dashboard.recruitment rt
|
||||
ON
|
||||
(al.region LIKE '%Адыге%' AND rt.shortname LIKE '%Адыге%')
|
||||
OR (al.region LIKE '%Республик%Башк%р%' AND rt.shortname LIKE '%Республик%Башк%р%')
|
||||
OR (al.region LIKE '%Республик%Бурят%' AND rt.shortname LIKE '%Республик%Бурят%')
|
||||
OR (al.region LIKE '%Республик%Алтай' AND rt.shortname LIKE '%Республик%Алтай')
|
||||
OR (al.region LIKE '%Дагест%' AND rt.shortname LIKE '%Дагест%')
|
||||
OR (al.region LIKE '%Ингушет%' AND rt.shortname LIKE '%Ингушет%')
|
||||
OR (al.region LIKE '%Кабардино-Балкар%' AND rt.shortname LIKE '%Кабардино-Балкар%')
|
||||
OR (al.region LIKE '%Республик%Калмыки%' AND rt.shortname LIKE '%Республик%Калмыки%')
|
||||
OR (al.region LIKE '%Карачаево-Черкесс%Республик%' AND rt.shortname LIKE '%Карачаево-Черкесс%Республик%')
|
||||
OR (al.region LIKE '%Карел%' AND rt.shortname LIKE '%Карел%')
|
||||
OR (al.region LIKE '%Коми%' AND rt.shortname LIKE '%Коми%')
|
||||
OR (al.region LIKE '%Марий%Эл%' AND rt.shortname LIKE '%Марий%Эл%')
|
||||
OR (al.region LIKE '%Мордови%' AND rt.shortname LIKE '%Мордови%')
|
||||
OR (al.region LIKE '%Саха%(Якутия)%' AND rt.shortname LIKE '%Саха%(Якутия)%')
|
||||
OR (al.region LIKE '%Северн%Осети%Алан%' AND rt.shortname LIKE '%Северн%Осети%Алан%')
|
||||
OR (al.region LIKE '%Татарстан%' AND rt.shortname LIKE '%Татарстан%')
|
||||
OR (al.region LIKE '%Тыва%' AND rt.shortname LIKE '%Тыва%')
|
||||
OR (al.region LIKE '%Удмуртск%' AND rt.shortname LIKE '%Удмуртск%')
|
||||
OR (al.region LIKE '%Хакас%' AND rt.shortname LIKE '%Хакас%')
|
||||
OR (al.region LIKE '%Чеченск%' AND rt.shortname LIKE '%Чеченск%')
|
||||
OR (al.region LIKE '%Чуваш%' AND rt.shortname LIKE '%Чуваш%')
|
||||
OR (al.region LIKE '%Алтайск%кра%' AND rt.shortname LIKE '%Алтайск%кра%')
|
||||
OR (al.region LIKE '%Краснодарск%' AND rt.shortname LIKE '%Краснодарск%')
|
||||
OR (al.region LIKE '%Красноярск%' AND rt.shortname LIKE '%Красноярск%')
|
||||
OR (al.region LIKE '%Приморск%' AND rt.shortname LIKE '%Приморск%')
|
||||
OR (al.region LIKE '%Ставропольск%' AND rt.shortname LIKE '%Ставропольск%')
|
||||
OR (al.region LIKE '%Хабаровск%' AND rt.shortname LIKE '%Хабаровск%')
|
||||
OR (al.region LIKE '%Амурск%' AND rt.shortname LIKE '%Амурск%')
|
||||
OR (al.region LIKE '%Архангельск%' AND rt.shortname LIKE '%Архангельск%')
|
||||
OR (al.region LIKE '%Астраханск%' AND rt.shortname LIKE '%Астраханск%')
|
||||
OR (al.region LIKE '%Белгородск%' AND rt.shortname LIKE '%Белгородск%')
|
||||
OR (al.region LIKE '%Брянск%' AND rt.shortname LIKE '%Брянск%')
|
||||
OR (al.region LIKE '%Владимирск%' AND rt.shortname LIKE '%Владимирск%')
|
||||
OR (al.region LIKE '%Волгоградск%' AND rt.shortname LIKE '%Волгоградск%')
|
||||
OR (al.region LIKE '%Вологодск%' AND rt.shortname LIKE '%Вологодск%')
|
||||
OR (al.region LIKE '%Воронежск%' AND rt.shortname LIKE '%Воронежск%')
|
||||
OR (al.region LIKE '%Ивановск%' AND rt.shortname LIKE '%Ивановск%')
|
||||
OR (al.region LIKE '%Иркутск%' AND rt.shortname LIKE '%Иркутск%')
|
||||
OR (al.region LIKE '%Калининградск%' AND rt.shortname LIKE '%Калининградск%')
|
||||
OR (al.region LIKE '%Калужск%' AND rt.shortname LIKE '%Калужск%')
|
||||
OR (al.region LIKE '%Камчатск%' AND rt.shortname LIKE '%Камчатск%')
|
||||
OR (al.region LIKE '%Кемеровск%' AND rt.shortname LIKE '%Кемеровск%')
|
||||
OR (al.region LIKE '%Кировск%' AND rt.shortname LIKE '%Кировск%')
|
||||
OR (al.region LIKE '%Костромск%' AND rt.shortname LIKE '%Костромск%')
|
||||
OR (al.region LIKE '%Курганск%' AND rt.shortname LIKE '%Курганск%')
|
||||
OR (al.region LIKE '%Курск%' AND rt.shortname LIKE '%Курск%')
|
||||
OR (al.region LIKE '%Ленинградск%' AND rt.shortname LIKE '%Ленинградск%')
|
||||
OR (al.region LIKE '%Липецк%' AND rt.shortname LIKE '%Липецк%')
|
||||
OR (al.region LIKE '%Магаданск%' AND rt.shortname LIKE '%Магаданск%')
|
||||
OR (al.region LIKE '%Московск%' AND rt.shortname LIKE '%Московск%')
|
||||
OR (al.region LIKE '%Мурманск%' AND rt.shortname LIKE '%Мурманск%')
|
||||
OR (al.region LIKE '%Нижегородск%' AND rt.shortname LIKE '%Нижегородск%')
|
||||
OR (al.region LIKE '%Новгородск%' AND rt.shortname LIKE '%Новгородск%')
|
||||
OR (al.region LIKE '%Новосибирск%' AND rt.shortname LIKE '%Новосибирск%')
|
||||
OR (al.region LIKE '%Омск%обл%' AND rt.shortname LIKE 'ВК Омск%обл%' and rt.shortname NOT LIKE '%Костромс%' and rt.shortname NOT like 'ВК Томск%')
|
||||
OR (al.region LIKE '%Оренбургск%' AND rt.shortname LIKE '%Оренбургск%')
|
||||
OR (al.region LIKE '%Орловск%' AND rt.shortname LIKE '%Орловск%')
|
||||
OR (al.region LIKE '%Пензенск%' AND rt.shortname LIKE '%Пензенск%')
|
||||
OR (al.region LIKE '%Пермск$' AND rt.shortname LIKE '%Пермск$')
|
||||
OR (al.region LIKE '%Псковск%' AND rt.shortname LIKE '%Псковск%')
|
||||
OR (al.region LIKE '%Ростовск%' AND rt.shortname LIKE '%Ростовск%')
|
||||
OR (al.region LIKE '%Рязанск%' AND rt.shortname LIKE '%Рязанск%')
|
||||
OR (al.region LIKE '%Самарск%' AND rt.shortname LIKE '%Самарск%')
|
||||
OR (al.region LIKE '%Саратовск%' AND rt.shortname LIKE '%Саратовск%')
|
||||
OR (al.region LIKE '%Сахалинск%' AND rt.shortname LIKE '%Сахалинск%')
|
||||
OR (al.region LIKE '%Свердловск%' AND rt.shortname LIKE '%Свердловск%')
|
||||
OR (al.region LIKE '%Смоленск%' AND rt.shortname LIKE '%Смоленск%')
|
||||
OR (al.region LIKE '%Тамбовск%' AND rt.shortname LIKE '%Тамбовск%')
|
||||
OR (al.region LIKE '%Тверск%' AND rt.shortname LIKE '%Тверск%')
|
||||
OR (al.region LIKE '%Томск%обл%' AND rt.shortname LIKE 'ВК Томской обл%' and rt.shortname NOT LIKE '%Костромс%' and rt.shortname NOT like 'ВК Омск%')
|
||||
OR (al.region LIKE '%Тульск%' AND rt.shortname LIKE '%Тульск%')
|
||||
OR (al.region LIKE '%Тюменск%' AND rt.shortname LIKE '%Тюменск%')
|
||||
OR (al.region LIKE '%Ульяновск%' AND rt.shortname LIKE '%Ульяновск%')
|
||||
OR (al.region LIKE '%Челябинск%' AND rt.shortname LIKE '%Челябинск%')
|
||||
OR (al.region LIKE '%Забайкальск%' AND rt.shortname LIKE '%Забайкальск%')
|
||||
OR (al.region LIKE '%Ярославск%' AND rt.shortname LIKE '%Ярославск%')
|
||||
OR (al.region LIKE '%г%Москв%' AND rt.shortname LIKE '%г%Москв%')
|
||||
OR (al.region LIKE '%г%Санкт-Петербург%' AND rt.shortname LIKE '%г%Санкт-Петербург%')
|
||||
OR (al.region LIKE '%Еврейск%автономн%' AND rt.shortname LIKE '%Еврейск%автономн%')
|
||||
OR (al.region LIKE '%Ненецк%автономн%' AND rt.shortname LIKE '%Ненецк%автономн%')
|
||||
OR (al.region LIKE '%Хант%Мансийск%' AND rt.shortname LIKE '%Хант%Мансийск%')
|
||||
OR (al.region LIKE '%Чукотск%автономн%' AND rt.shortname LIKE '%Чукотск%автономн%')
|
||||
OR (al.region LIKE '%Ямал%Ненецк%автономн%' AND rt.shortname LIKE '%Ямал%Ненецк%автономн%')
|
||||
OR (al.region LIKE '%Крым%' AND rt.shortname LIKE '%Крым%')
|
||||
OR (al.region LIKE '%г%Севастопол%' AND rt.shortname LIKE '%г%Севастопол%')
|
||||
OR (al.region LIKE '%Запорожск%' AND rt.shortname LIKE '%Запорожск%')
|
||||
OR (al.region LIKE '%Донецк%Народн%' AND rt.shortname LIKE '%Донецк%Народн%')
|
||||
OR (al.region LIKE '%Луганск%Народн%' AND rt.shortname LIKE '%Луганск%Народн%')
|
||||
OR (al.region LIKE '%Херсонск%' AND rt.shortname LIKE '%Херсонск%')
|
||||
(al.region ILIKE '%Адыге%' AND rt.shortname ILIKE '%Адыге%')
|
||||
OR (al.region ILIKE '%Республик%Башк%р%' AND rt.shortname ILIKE '%Республик%Башк%р%')
|
||||
OR (al.region ILIKE '%Республик%Бурят%' AND rt.shortname ILIKE '%Республик%Бурят%')
|
||||
OR (al.region ILIKE '%Республик%Алтай%' AND rt.shortname ILIKE '%Республик%Алтай%')
|
||||
OR (al.region ILIKE '%Дагест%' AND rt.shortname ILIKE '%Дагест%')
|
||||
OR (al.region ILIKE '%Ингушет%' AND rt.shortname ILIKE '%Ингушет%')
|
||||
OR (al.region ILIKE '%Кабардино-Балкар%' AND rt.shortname ILIKE '%Кабардино-Балкар%')
|
||||
OR (al.region ILIKE '%Республик%Калмыки%' AND rt.shortname ILIKE '%Республик%Калмыки%')
|
||||
OR (al.region ILIKE '%Карачаево-Черкесс%Республик%' AND rt.shortname ILIKE '%Карачаево-Черкесс%Республик%')
|
||||
OR (al.region ILIKE '%Карел%' AND rt.shortname ILIKE '%Карел%')
|
||||
OR (al.region ILIKE '%Коми%' AND rt.shortname ILIKE '%Коми%')
|
||||
OR (al.region ILIKE '%Марий%Эл%' AND rt.shortname ILIKE '%Марий%Эл%')
|
||||
OR (al.region ILIKE '%Мордови%' AND rt.shortname ILIKE '%Мордови%')
|
||||
OR (al.region ILIKE '%Саха%(Якутия)%' AND rt.shortname ILIKE '%Саха%(Якутия)%')
|
||||
OR (al.region ILIKE '%Северн%Осети%Алан%' AND rt.shortname ILIKE '%Северн%Осети%Алан%')
|
||||
OR (al.region ILIKE '%Татарстан%' AND rt.shortname ILIKE '%Татарстан%')
|
||||
OR (al.region ILIKE '%Тыва%' AND rt.shortname ILIKE '%Тыва%')
|
||||
OR (al.region ILIKE '%Удмуртск%' AND rt.shortname ILIKE '%Удмуртск%')
|
||||
OR (al.region ILIKE '%Хакас%' AND rt.shortname ILIKE '%Хакас%')
|
||||
OR (al.region ILIKE '%Чеченск%' AND rt.shortname ILIKE '%Чеченск%')
|
||||
OR (al.region ILIKE '%Чуваш%' AND rt.shortname ILIKE '%Чуваш%')
|
||||
OR (al.region ILIKE '%Алтайск%кра%' AND rt.shortname ILIKE '%Алтайск%кра%')
|
||||
OR (al.region ILIKE '%Краснодарск%' AND rt.shortname ILIKE '%Краснодарск%')
|
||||
OR (al.region ILIKE '%Красноярск%' AND rt.shortname ILIKE '%Красноярск%')
|
||||
OR (al.region ILIKE '%Приморск%' AND rt.shortname ILIKE '%Приморск%')
|
||||
OR (al.region ILIKE '%Ставропольск%' AND rt.shortname ILIKE '%Ставропольск%')
|
||||
OR (al.region ILIKE '%Хабаровск%' AND rt.shortname ILIKE '%Хабаровск%')
|
||||
OR (al.region ILIKE '%Амурск%' AND rt.shortname ILIKE '%Амурск%')
|
||||
OR (al.region ILIKE '%Архангельск%' AND rt.shortname ILIKE '%Архангельск%')
|
||||
OR (al.region ILIKE '%Астраханск%' AND rt.shortname ILIKE '%Астраханск%')
|
||||
OR (al.region ILIKE '%Белгородск%' AND rt.shortname ILIKE '%Белгородск%')
|
||||
OR (al.region ILIKE '%Брянск%' AND rt.shortname ILIKE '%Брянск%')
|
||||
OR (al.region ILIKE '%Владимирск%' AND rt.shortname ILIKE '%Владимирск%')
|
||||
OR (al.region ILIKE '%Волгоградск%' AND rt.shortname ILIKE '%Волгоградск%')
|
||||
OR (al.region ILIKE '%Вологодск%' AND rt.shortname ILIKE '%Вологодск%')
|
||||
OR (al.region ILIKE '%Воронежск%' AND rt.shortname ILIKE '%Воронежск%')
|
||||
OR (al.region ILIKE '%Ивановск%' AND rt.shortname ILIKE '%Ивановск%')
|
||||
OR (al.region ILIKE '%Иркутск%' AND rt.shortname ILIKE '%Иркутск%')
|
||||
OR (al.region ILIKE '%Калининградск%' AND rt.shortname ILIKE '%Калининградск%')
|
||||
OR (al.region ILIKE '%Калужск%' AND rt.shortname ILIKE '%Калужск%')
|
||||
OR (al.region ILIKE '%Камчатск%' AND rt.shortname ILIKE '%Камчатск%')
|
||||
OR (al.region ILIKE '%Кемеровск%' AND rt.shortname ILIKE '%Кемеровск%')
|
||||
OR (al.region ILIKE '%Кировск%' AND rt.shortname ILIKE '%Кировск%')
|
||||
OR (al.region ILIKE '%Костромск%' AND rt.shortname ILIKE '%Костромск%')
|
||||
OR (al.region ILIKE '%Курганск%' AND rt.shortname ILIKE '%Курганск%')
|
||||
OR (al.region ILIKE '%Курск%' AND rt.shortname ILIKE '%Курск%')
|
||||
OR (al.region ILIKE '%Ленинградск%' AND rt.shortname ILIKE '%Ленинградск%')
|
||||
OR (al.region ILIKE '%Липецк%' AND rt.shortname ILIKE '%Липецк%')
|
||||
OR (al.region ILIKE '%Магаданск%' AND rt.shortname ILIKE '%Магаданск%')
|
||||
OR (al.region ILIKE '%Московск%' AND rt.shortname ILIKE '%Московск%')
|
||||
OR (al.region ILIKE '%Мурманск%' AND rt.shortname ILIKE '%Мурманск%')
|
||||
OR (al.region ILIKE '%Нижегородск%' AND rt.shortname ILIKE '%Нижегородск%')
|
||||
OR (al.region ILIKE '%Новгородск%' AND rt.shortname ILIKE '%Новгородск%')
|
||||
OR (al.region ILIKE '%Новосибирск%' AND rt.shortname ILIKE '%Новосибирск%')
|
||||
OR (al.region ILIKE '%Омск%обл%' AND rt.shortname ILIKE 'ВК Омск%обл%' and rt.shortname NOT ILIKE '%Костромс%' and rt.shortname NOT ILIKE 'Военный комиссариат Томск%')
|
||||
OR (al.region ILIKE '%Оренбургск%' AND rt.shortname ILIKE '%Оренбургск%')
|
||||
OR (al.region ILIKE '%Орловск%' AND rt.shortname ILIKE '%Орловск%')
|
||||
OR (al.region ILIKE '%Пензенск%' AND rt.shortname ILIKE '%Пензенск%')
|
||||
OR (al.region ILIKE '%Пермск$' AND rt.shortname ILIKE '%Пермск$')
|
||||
OR (al.region ILIKE '%Псковск%' AND rt.shortname ILIKE '%Псковск%')
|
||||
OR (al.region ILIKE '%Ростовск%' AND rt.shortname ILIKE '%Ростовск%')
|
||||
OR (al.region ILIKE '%Рязанск%' AND rt.shortname ILIKE '%Рязанск%')
|
||||
OR (al.region ILIKE '%Самарск%' AND rt.shortname ILIKE '%Самарск%')
|
||||
OR (al.region ILIKE '%Саратовск%' AND rt.shortname ILIKE '%Саратовск%')
|
||||
OR (al.region ILIKE '%Сахалинск%' AND rt.shortname ILIKE '%Сахалинск%')
|
||||
OR (al.region ILIKE '%Свердловск%' AND rt.shortname ILIKE '%Свердловск%')
|
||||
OR (al.region ILIKE '%Смоленск%' AND rt.shortname ILIKE '%Смоленск%')
|
||||
OR (al.region ILIKE '%Тамбовск%' AND rt.shortname ILIKE '%Тамбовск%')
|
||||
OR (al.region ILIKE '%Тверск%' AND rt.shortname ILIKE '%Тверск%')
|
||||
OR (al.region ILIKE '%Томск%обл%' AND rt.shortname ILIKE 'Военный комиссариат Томской обл%' and rt.shortname NOT ILIKE '%Костромс%' and rt.shortname NOT ILIKE 'Военный комиссариат Омск%')
|
||||
OR (al.region ILIKE '%Тульск%' AND rt.shortname ILIKE '%Тульск%')
|
||||
OR (al.region ILIKE '%Тюменск%' AND rt.shortname ILIKE '%Тюменск%')
|
||||
OR (al.region ILIKE '%Ульяновск%' AND rt.shortname ILIKE '%Ульяновск%')
|
||||
OR (al.region ILIKE '%Челябинск%' AND rt.shortname ILIKE '%Челябинск%')
|
||||
OR (al.region ILIKE '%Забайкальск%' AND rt.shortname ILIKE '%Забайкальск%')
|
||||
OR (al.region ILIKE '%Ярославск%' AND rt.shortname ILIKE '%Ярославск%')
|
||||
OR (al.region ILIKE '%г%Москв%' AND rt.shortname ILIKE '%г%Москв%')
|
||||
OR (al.region ILIKE '%г%Санкт-Петербург%' AND rt.shortname ILIKE '%г%Санкт-Петербург%')
|
||||
OR (al.region ILIKE '%Еврейск%автономн%' AND rt.shortname ILIKE '%Еврейск%автономн%')
|
||||
OR (al.region ILIKE '%Ненецк%автономн%' AND rt.shortname ILIKE '%Ненецк%автономн%')
|
||||
OR (al.region ILIKE '%Хант%Мансийск%' AND rt.shortname ILIKE '%Хант%Мансийск%')
|
||||
OR (al.region ILIKE '%Чукотск%автономн%' AND rt.shortname ILIKE '%Чукотск%автономн%')
|
||||
OR (al.region ILIKE '%Ямал%Ненецк%автономн%' AND rt.shortname ILIKE '%Ямал%Ненецк%автономн%')
|
||||
OR (al.region ILIKE '%Крым%' AND rt.shortname ILIKE '%Крым%')
|
||||
OR (al.region ILIKE '%г%Севастопол%' AND rt.shortname ILIKE '%г%Севастопол%')
|
||||
OR (al.region ILIKE '%Запорожск%' AND rt.shortname ILIKE '%Запорожск%')
|
||||
OR (al.region ILIKE '%Донецк%Народн%' AND rt.shortname ILIKE '%Донецк%Народн%')
|
||||
OR (al.region ILIKE '%Луганск%Народн%' AND rt.shortname ILIKE '%Луганск%Народн%')
|
||||
OR (al.region ILIKE '%Херсонск%' AND rt.shortname ILIKE '%Херсонск%')
|
||||
WHERE
|
||||
rt.schema = 'Organization'
|
||||
)
|
||||
|
|
@ -188,95 +188,95 @@ SELECT DISTINCT
|
|||
region
|
||||
FROM ranked_recruitment rrt
|
||||
where
|
||||
(rrt.region LIKE '%Адыге%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Республик%Башк%р%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Республик%Бурят%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Республик%Алтай' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Дагест%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ингушет%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Кабардино-Балкар%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Республик%Калмыки%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Карачаево-Черкесс%Республик%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Карел%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Коми%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Марий%Эл%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Мордови%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Саха%(Якутия)%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Северн%Осети%Алан%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Татарстан%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Тыва%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Удмуртск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Хакас%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Чеченск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Чуваш%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Алтайск%кра%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Краснодарск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Красноярск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Приморск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ставропольск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Хабаровск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Амурск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Архангельск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Астраханск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Белгородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Брянск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Владимирск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Волгоградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Вологодск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Воронежск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ивановск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Иркутск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Калининградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Калужск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Камчатск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Кемеровск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Кировск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Костромск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Курганск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Курск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ленинградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Липецк%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Магаданск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Московск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Мурманск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Нижегородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Новгородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Новосибирск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Омск%обл%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Оренбургск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Орловск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Пензенск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Пермск$' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Псковск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ростовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Рязанск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Самарск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Саратовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Сахалинск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Свердловск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Смоленск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Тамбовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Тверск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Томск%обл%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Тульск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Тюменск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ульяновск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Челябинск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Забайкальск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ярославск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%г%Москв%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%г%Санкт-Петербург%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Еврейск%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ненецк%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Хант%Мансийск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Чукотск%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Ямал%Ненецк%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Крым%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%г%Севастопол%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Запорожск%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Донецк%Народн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Луганск%Народн%' AND rrt.rn = 1) OR
|
||||
(rrt.region LIKE '%Херсонск%' AND rrt.rn = 1);
|
||||
(rrt.region ILIKE '%Адыге%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Республик%Башк%р%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Республик%Бурят%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Республик%Алтай' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Дагест%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ингушет%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Кабардино-Балкар%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Республик%Калмыки%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Карачаево-Черкесс%Республик%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Карел%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Коми%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Марий%Эл%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Мордови%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Саха%(Якутия)%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Северн%Осети%Алан%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Татарстан%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Тыва%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Удмуртск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Хакас%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Чеченск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Чуваш%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Алтайск%кра%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Краснодарск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Красноярск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Приморск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ставропольск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Хабаровск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Амурск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Архангельск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Астраханск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Белгородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Брянск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Владимирск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Волгоградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Вологодск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Воронежск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ивановск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Иркутск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Калининградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Калужск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Камчатск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Кемеровск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Кировск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Костромск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Курганск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Курск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ленинградск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Липецк%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Магаданск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Московск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Мурманск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Нижегородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Новгородск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Новосибирск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Омск%обл%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Оренбургск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Орловск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Пензенск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Пермск$' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Псковск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ростовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Рязанск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Самарск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Саратовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Сахалинск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Свердловск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Смоленск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Тамбовск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Тверск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Томск%обл%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Тульск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Тюменск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ульяновск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Челябинск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Забайкальск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ярославск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%г%Москв%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%г%Санкт-Петербург%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Еврейск%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ненецк%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Хант%Мансийск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Чукотск%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Ямал%Ненецк%автономн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Крым%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%г%Севастопол%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Запорожск%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Донецк%Народн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Луганск%Народн%' AND rrt.rn = 1) OR
|
||||
(rrt.region ILIKE '%Херсонск%' AND rrt.rn = 1);
|
||||
</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<attributes/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue