fix
This commit is contained in:
parent
3663cad1aa
commit
c8bdc1f058
2 changed files with 120 additions and 151 deletions
|
|
@ -1,151 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<pipeline>
|
|
||||||
<info>
|
|
||||||
<name>citizen_appealing_violations_fz53</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/22 10:23:09.039</created_date>
|
|
||||||
<modified_user>-</modified_user>
|
|
||||||
<modified_date>2025/04/22 10:23:09.039</modified_date>
|
|
||||||
</info>
|
|
||||||
<notepads>
|
|
||||||
</notepads>
|
|
||||||
<order>
|
|
||||||
<hop>
|
|
||||||
<from>Table input</from>
|
|
||||||
<to>Table output</to>
|
|
||||||
<enabled>Y</enabled>
|
|
||||||
</hop>
|
|
||||||
<hop>
|
|
||||||
<from>Table input</from>
|
|
||||||
<to>Insert / update</to>
|
|
||||||
<enabled>N</enabled>
|
|
||||||
</hop>
|
|
||||||
</order>
|
|
||||||
<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>postgres.decision-document-service</connection>
|
|
||||||
<execute_each_row>N</execute_each_row>
|
|
||||||
<limit>0</limit>
|
|
||||||
<sql>SELECT
|
|
||||||
recruit_id,
|
|
||||||
appeal_number AS number_appealed, -- номер обжалуемого решения
|
|
||||||
appeal_date AS date_appealed, -- дата обжалуемого решения
|
|
||||||
result_number AS case_number, -- номер принятого решения
|
|
||||||
result_date AS decision_date, -- дата принятия решения
|
|
||||||
CASE
|
|
||||||
WHEN result = '1' THEN 'Удовлетворена'
|
|
||||||
WHEN resUlt = '2' THEN 'Частично удовлетворена'
|
|
||||||
WHEN result = '3' THEN 'Отказано в удовлетворении'
|
|
||||||
ELSE NULL
|
|
||||||
END AS result_appeal, -- код рассмотрения
|
|
||||||
commission_name AS name_commission, -- наименование комиссии, принявшей решение
|
|
||||||
reason_for_add_entry AS grounds -- основание для внесения записи
|
|
||||||
FROM public.appeal_document_dto
|
|
||||||
WHERE hidden IS FALSE</sql>
|
|
||||||
<variables_active>N</variables_active>
|
|
||||||
<attributes/>
|
|
||||||
<GUI>
|
|
||||||
<xloc>464</xloc>
|
|
||||||
<yloc>256</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>
|
|
||||||
<connection>ervu-dashboard</connection>
|
|
||||||
<fields>
|
|
||||||
</fields>
|
|
||||||
<ignore_errors>N</ignore_errors>
|
|
||||||
<only_when_have_rows>N</only_when_have_rows>
|
|
||||||
<partitioning_daily>N</partitioning_daily>
|
|
||||||
<partitioning_enabled>N</partitioning_enabled>
|
|
||||||
<partitioning_field/>
|
|
||||||
<partitioning_monthly>Y</partitioning_monthly>
|
|
||||||
<return_field/>
|
|
||||||
<return_keys>N</return_keys>
|
|
||||||
<schema>ervu_dashboard</schema>
|
|
||||||
<specify_fields>N</specify_fields>
|
|
||||||
<table>citizen_appealing_violations_fz53</table>
|
|
||||||
<tablename_field/>
|
|
||||||
<tablename_in_field>N</tablename_in_field>
|
|
||||||
<tablename_in_table>Y</tablename_in_table>
|
|
||||||
<truncate>N</truncate>
|
|
||||||
<use_batch>Y</use_batch>
|
|
||||||
<attributes/>
|
|
||||||
<GUI>
|
|
||||||
<xloc>768</xloc>
|
|
||||||
<yloc>256</yloc>
|
|
||||||
</GUI>
|
|
||||||
</transform>
|
|
||||||
<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>
|
|
||||||
<name2/>
|
|
||||||
</key>
|
|
||||||
<schema>ervu_dashboard</schema>
|
|
||||||
<table>citizen_complex_filters</table>
|
|
||||||
<value>
|
|
||||||
<name>recruit_id</name>
|
|
||||||
<rename>recruit_id</rename>
|
|
||||||
<update>N</update>
|
|
||||||
</value>
|
|
||||||
<value>
|
|
||||||
<name>appealing_fz_53</name>
|
|
||||||
<rename>appealing_fz_53</rename>
|
|
||||||
<update>Y</update>
|
|
||||||
</value>
|
|
||||||
</lookup>
|
|
||||||
<update_bypassed>N</update_bypassed>
|
|
||||||
<attributes/>
|
|
||||||
<GUI>
|
|
||||||
<xloc>768</xloc>
|
|
||||||
<yloc>464</yloc>
|
|
||||||
</GUI>
|
|
||||||
</transform>
|
|
||||||
<transform_error_handling>
|
|
||||||
</transform_error_handling>
|
|
||||||
<attributes/>
|
|
||||||
</pipeline>
|
|
||||||
|
|
@ -20,7 +20,127 @@
|
||||||
<notepads>
|
<notepads>
|
||||||
</notepads>
|
</notepads>
|
||||||
<order>
|
<order>
|
||||||
|
<hop>
|
||||||
|
<from>Table input</from>
|
||||||
|
<to>Insert / update</to>
|
||||||
|
<enabled>N</enabled>
|
||||||
|
</hop>
|
||||||
|
<hop>
|
||||||
|
<from>Table input</from>
|
||||||
|
<to>Table output</to>
|
||||||
|
<enabled>Y</enabled>
|
||||||
|
</hop>
|
||||||
</order>
|
</order>
|
||||||
|
<transform>
|
||||||
|
<name>Insert / update</name>
|
||||||
|
<type>InsertUpdate</type>
|
||||||
|
<description/>
|
||||||
|
<distribute>Y</distribute>
|
||||||
|
<custom_distribution/>
|
||||||
|
<copies>1</copies>
|
||||||
|
<partitioning>
|
||||||
|
<method>none</method>
|
||||||
|
<schema_name/>
|
||||||
|
</partitioning>
|
||||||
|
<commit>100</commit>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<lookup>
|
||||||
|
<key>
|
||||||
|
<condition>=</condition>
|
||||||
|
<field>recruit_id</field>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
</key>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<table>citizen_complex_filters</table>
|
||||||
|
<value>
|
||||||
|
<name>recruit_id</name>
|
||||||
|
<rename>recruit_id</rename>
|
||||||
|
<update>N</update>
|
||||||
|
</value>
|
||||||
|
<value>
|
||||||
|
<name>appealing_fz_53</name>
|
||||||
|
<rename>appealing_fz_53</rename>
|
||||||
|
<update>Y</update>
|
||||||
|
</value>
|
||||||
|
</lookup>
|
||||||
|
<update_bypassed>N</update_bypassed>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>912</xloc>
|
||||||
|
<yloc>464</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>postgres.decision-document-service</connection>
|
||||||
|
<execute_each_row>N</execute_each_row>
|
||||||
|
<limit>0</limit>
|
||||||
|
<sql>SELECT
|
||||||
|
recruit_id,
|
||||||
|
appeal_number AS number_appealed, -- номер обжалуемого решения
|
||||||
|
appeal_date AS date_appealed, -- дата обжалуемого решения
|
||||||
|
result_number AS case_number, -- номер принятого решения
|
||||||
|
result_date AS decision_date, -- дата принятия решения
|
||||||
|
CASE
|
||||||
|
WHEN result = '1' THEN 'Удовлетворена'
|
||||||
|
WHEN resUlt = '2' THEN 'Частично удовлетворена'
|
||||||
|
WHEN result = '3' THEN 'Отказано в удовлетворении'
|
||||||
|
ELSE NULL
|
||||||
|
END AS result_appeal, -- код рассмотрения
|
||||||
|
commission_name AS name_commission, -- наименование комиссии, принявшей решение
|
||||||
|
reason_for_add_entry AS grounds -- основание для внесения записи
|
||||||
|
FROM public.appeal_document_dto
|
||||||
|
WHERE hidden IS FALSE</sql>
|
||||||
|
<variables_active>N</variables_active>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>608</xloc>
|
||||||
|
<yloc>256</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>
|
||||||
|
<connection>ervu-dashboard</connection>
|
||||||
|
<fields>
|
||||||
|
</fields>
|
||||||
|
<ignore_errors>N</ignore_errors>
|
||||||
|
<only_when_have_rows>N</only_when_have_rows>
|
||||||
|
<partitioning_daily>N</partitioning_daily>
|
||||||
|
<partitioning_enabled>N</partitioning_enabled>
|
||||||
|
<partitioning_monthly>Y</partitioning_monthly>
|
||||||
|
<return_keys>N</return_keys>
|
||||||
|
<schema>ervu_dashboard</schema>
|
||||||
|
<specify_fields>N</specify_fields>
|
||||||
|
<table>citizen_appealing_violations_fz53</table>
|
||||||
|
<tablename_in_field>N</tablename_in_field>
|
||||||
|
<tablename_in_table>Y</tablename_in_table>
|
||||||
|
<truncate>N</truncate>
|
||||||
|
<use_batch>Y</use_batch>
|
||||||
|
<attributes/>
|
||||||
|
<GUI>
|
||||||
|
<xloc>912</xloc>
|
||||||
|
<yloc>256</yloc>
|
||||||
|
</GUI>
|
||||||
|
</transform>
|
||||||
<transform_error_handling>
|
<transform_error_handling>
|
||||||
</transform_error_handling>
|
</transform_error_handling>
|
||||||
<attributes/>
|
<attributes/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue