2025-04-07 20:31:30 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2024-10-16 10:38:29 +03:00
|
|
|
<pipeline>
|
|
|
|
|
<info>
|
|
|
|
|
<name>punishment</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>2024/08/15 14:02:51.713</created_date>
|
|
|
|
|
<modified_user>-</modified_user>
|
|
|
|
|
<modified_date>2024/08/15 14:02:51.713</modified_date>
|
|
|
|
|
</info>
|
|
|
|
|
<notepads>
|
|
|
|
|
</notepads>
|
|
|
|
|
<order>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Table output</to>
|
2025-04-07 20:31:30 +03:00
|
|
|
<enabled>N</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Insert / update</to>
|
2024-10-16 10:38:29 +03:00
|
|
|
<enabled>Y</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
</order>
|
2025-04-07 20:31:30 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Insert / update</name>
|
|
|
|
|
<type>InsertUpdate</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<commit>100</commit>
|
|
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<lookup>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>recruit_id</field>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
</key>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<table>punishment</table>
|
|
|
|
|
<value>
|
|
|
|
|
<name>authority_name</name>
|
|
|
|
|
<rename>authority_name</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>law_point</name>
|
|
|
|
|
<rename>law_point</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>punishment_code</name>
|
|
|
|
|
<rename>punishment_code</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>punishment_type</name>
|
|
|
|
|
<rename>punishment_type</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
<rename>recruit_id</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>release_date</name>
|
|
|
|
|
<rename>release_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>release_reason</name>
|
|
|
|
|
<rename>release_reason</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>sentence</name>
|
|
|
|
|
<rename>sentence</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>sentence_changed</name>
|
|
|
|
|
<rename>sentence_changed</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>sentence_place</name>
|
|
|
|
|
<rename>sentence_place</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>sentense_date</name>
|
|
|
|
|
<rename>sentense_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>start_date</name>
|
|
|
|
|
<rename>start_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
</lookup>
|
|
|
|
|
<update_bypassed>N</update_bypassed>
|
|
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>784</xloc>
|
|
|
|
|
<yloc>304</yloc>
|
|
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
2024-10-16 10:38:29 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Table input</name>
|
|
|
|
|
<type>TableInput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<connection>ervu_person_registry</connection>
|
2025-04-07 20:31:30 +03:00
|
|
|
<execute_each_row>N</execute_each_row>
|
|
|
|
|
<limit>0</limit>
|
2024-10-16 10:38:29 +03:00
|
|
|
<sql>with ugol as
|
2025-04-07 20:31:30 +03:00
|
|
|
(select jsonb_array_elements(ri.info->'svedFL'->'svedSudim'->'sudim'->'osuzhdenie') u,
|
2024-10-16 10:38:29 +03:00
|
|
|
ri.recruit_id
|
|
|
|
|
from public.recruits_info ri
|
2025-04-07 20:31:30 +03:00
|
|
|
join public.recruits r ON r.id = ri.recruit_id
|
|
|
|
|
where jsonb_typeof(ri.info->'svedFL'->'svedSudim'->'sudim'->'osuzhdenie') = 'array'
|
|
|
|
|
AND r.system_update_date >= '${UP_D}'
|
|
|
|
|
)
|
2024-10-16 10:38:29 +03:00
|
|
|
select
|
|
|
|
|
r.id recruit_id,
|
|
|
|
|
u->>'naimSuda' authority_name,
|
|
|
|
|
u->>'srokNakaz' sentence,
|
|
|
|
|
u->>'adresNakaz' sentence_place,
|
|
|
|
|
u->>'kodVidNakaz' punishment_code,
|
|
|
|
|
u->>'izmSrokNakaz' sentence_changed,
|
|
|
|
|
u->>'naimVidNakaz' punishment_type,
|
|
|
|
|
to_date(u->>'dataNachSrok', 'YYYY-MM-DD') start_date,
|
|
|
|
|
to_date(u->>'dataOsvobozhd', 'YYYY-MM-DD') release_date,
|
|
|
|
|
to_date(u->>'dataOsuzhd', 'YYYY-MM-DD') sentense_date,
|
|
|
|
|
u->>'ugolovZakon' law_point,
|
|
|
|
|
u->>'osnovOsvobozhd' release_reason
|
|
|
|
|
from public.recruits r
|
2025-04-07 20:31:30 +03:00
|
|
|
join ugol on r.id = ugol.recruit_id</sql>
|
|
|
|
|
<variables_active>Y</variables_active>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>528</xloc>
|
|
|
|
|
<yloc>304</yloc>
|
|
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Table output</name>
|
|
|
|
|
<type>TableOutput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<commit>1000</commit>
|
2025-04-07 20:31:30 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<fields>
|
|
|
|
|
</fields>
|
2024-10-16 10:38:29 +03:00
|
|
|
<ignore_errors>N</ignore_errors>
|
2025-04-07 20:31:30 +03:00
|
|
|
<only_when_have_rows>N</only_when_have_rows>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_daily>N</partitioning_daily>
|
2025-04-07 20:31:30 +03:00
|
|
|
<partitioning_enabled>N</partitioning_enabled>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
2025-04-07 20:31:30 +03:00
|
|
|
<return_keys>N</return_keys>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<specify_fields>N</specify_fields>
|
|
|
|
|
<table>punishment</table>
|
2024-10-16 10:38:29 +03:00
|
|
|
<tablename_in_field>N</tablename_in_field>
|
|
|
|
|
<tablename_in_table>Y</tablename_in_table>
|
2025-04-07 20:31:30 +03:00
|
|
|
<truncate>N</truncate>
|
|
|
|
|
<use_batch>Y</use_batch>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
2025-04-07 20:31:30 +03:00
|
|
|
<xloc>752</xloc>
|
|
|
|
|
<yloc>176</yloc>
|
2024-10-16 10:38:29 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform_error_handling>
|
|
|
|
|
</transform_error_handling>
|
|
|
|
|
<attributes/>
|
|
|
|
|
</pipeline>
|