This commit is contained in:
Ruslan 2025-10-08 15:06:54 +05:00
parent c5ae201b00
commit 45f22b9d23
4 changed files with 381 additions and 165 deletions

View file

@ -60,11 +60,6 @@
<to>User defined Java expression</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>User defined Java expression</from>
<to>Update</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Insert / update</from>
<to>Group by</to>
@ -85,6 +80,51 @@
<to>Filter rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 2</from>
<to>Update</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 3</from>
<to>Update 2</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 4</from>
<to>Update 3</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>User defined Java expression</from>
<to>Update 5</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 5</from>
<to>Update 4</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 2</from>
<to>Change job status on error</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 3</from>
<to>Change job status on error</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 4</from>
<to>Change job status on error</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Update 5</from>
<to>Change job status on error</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Abort</name>
@ -102,8 +142,8 @@
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>400</yloc>
<xloc>1648</xloc>
<yloc>688</yloc>
</GUI>
</transform>
<transform>
@ -137,8 +177,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>208</yloc>
<xloc>1648</xloc>
<yloc>496</yloc>
</GUI>
</transform>
<transform>
@ -168,8 +208,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1776</xloc>
<yloc>64</yloc>
<xloc>2112</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -215,8 +255,8 @@ DO UPDATE SET
</sql>
<attributes/>
<GUI>
<xloc>272</xloc>
<yloc>208</yloc>
<xloc>288</xloc>
<yloc>496</yloc>
</GUI>
</transform>
<transform>
@ -232,8 +272,8 @@ DO UPDATE SET
</partitioning>
<attributes/>
<GUI>
<xloc>1568</xloc>
<yloc>64</yloc>
<xloc>1904</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -268,8 +308,8 @@ DO UPDATE SET
<send_true_to>Change job status on success</send_true_to>
<attributes/>
<GUI>
<xloc>1568</xloc>
<yloc>176</yloc>
<xloc>1904</xloc>
<yloc>464</yloc>
</GUI>
</transform>
<transform>
@ -323,8 +363,8 @@ DO UPDATE SET
<prefix>grp</prefix>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>64</yloc>
<xloc>688</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -341,8 +381,8 @@ DO UPDATE SET
<resultfieldname>last_row</resultfieldname>
<attributes/>
<GUI>
<xloc>864</xloc>
<yloc>64</yloc>
<xloc>880</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -445,8 +485,8 @@ DO UPDATE SET
<update_bypassed>N</update_bypassed>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>208</yloc>
<xloc>688</xloc>
<yloc>496</yloc>
</GUI>
</transform>
<transform>
@ -462,7 +502,6 @@ DO UPDATE SET
</partitioning>
<connection>ervu-dashboard</connection>
<execute_each_row>N</execute_each_row>
<limit/>
<sql>WITH
base as(
SELECT
@ -658,8 +697,8 @@ from all_data</sql>
<variables_active>Y</variables_active>
<attributes/>
<GUI>
<xloc>480</xloc>
<yloc>208</yloc>
<xloc>496</xloc>
<yloc>496</yloc>
</GUI>
</transform>
<transform>
@ -676,55 +715,22 @@ from all_data</sql>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
</key>
<key>
<condition>&lt;></condition>
<field>has_property</field>
<name>has_property</name>
</key>
<key>
<condition>&lt;></condition>
<field>has_ground_transport</field>
<name>has_ground_transport</name>
</key>
<key>
<condition>&lt;></condition>
<field>has_air_transport</field>
<name>has_air_transport</name>
</key>
<key>
<condition>&lt;></condition>
<field>has_water_transport</field>
<name>has_water_transport</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_possibility_reg_residence</field>
<name>has_possibility_reg_residence</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
<name>has_property</name>
<rename>has_property</rename>
</value>
<value>
<name>has_ground_transport</name>
<rename>has_ground_transport</rename>
</value>
<value>
<name>has_air_transport</name>
<rename>has_air_transport</rename>
</value>
<value>
<name>has_water_transport</name>
<rename>has_water_transport</rename>
</value>
<value>
<name>has_possibility_reg_residence</name>
<rename>has_possibility_reg_residence</rename>
@ -734,8 +740,8 @@ from all_data</sql>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>64</yloc>
<xloc>1648</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -791,8 +797,180 @@ from all_data</sql>
</formula>
<attributes/>
<GUI>
<xloc>1088</xloc>
<yloc>64</yloc>
<xloc>1104</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
<name>Update 2</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_water_transport</field>
<name>has_water_transport</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
<name>has_water_transport</name>
<rename>has_water_transport</rename>
</value>
</lookup>
<skip_lookup>N</skip_lookup>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1552</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
<name>Update 3</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_air_transport</field>
<name>has_air_transport</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
<name>has_air_transport</name>
<rename>has_air_transport</rename>
</value>
</lookup>
<skip_lookup>N</skip_lookup>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1456</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
<name>Update 4</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_ground_transport</field>
<name>has_ground_transport</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
<name>has_ground_transport</name>
<rename>has_ground_transport</rename>
</value>
</lookup>
<skip_lookup>N</skip_lookup>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1360</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
<name>Update 5</name>
<type>Update</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_property</field>
<name>has_property</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
<name>has_property</name>
<rename>has_property</rename>
</value>
</lookup>
<skip_lookup>N</skip_lookup>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1264</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform_error_handling>
@ -820,6 +998,54 @@ from all_data</sql>
<max_pct_errors/>
<min_pct_rows/>
</error>
<error>
<source_transform>Update 2</source_transform>
<target_transform>Change job status on error</target_transform>
<is_enabled>Y</is_enabled>
<nr_valuename/>
<descriptions_valuename/>
<fields_valuename/>
<codes_valuename/>
<max_errors/>
<max_pct_errors/>
<min_pct_rows/>
</error>
<error>
<source_transform>Update 3</source_transform>
<target_transform>Change job status on error</target_transform>
<is_enabled>Y</is_enabled>
<nr_valuename/>
<descriptions_valuename/>
<fields_valuename/>
<codes_valuename/>
<max_errors/>
<max_pct_errors/>
<min_pct_rows/>
</error>
<error>
<source_transform>Update 4</source_transform>
<target_transform>Change job status on error</target_transform>
<is_enabled>Y</is_enabled>
<nr_valuename/>
<descriptions_valuename/>
<fields_valuename/>
<codes_valuename/>
<max_errors/>
<max_pct_errors/>
<min_pct_rows/>
</error>
<error>
<source_transform>Update 5</source_transform>
<target_transform>Change job status on error</target_transform>
<is_enabled>Y</is_enabled>
<nr_valuename/>
<descriptions_valuename/>
<fields_valuename/>
<codes_valuename/>
<max_errors/>
<max_pct_errors/>
<min_pct_rows/>
</error>
</transform_error_handling>
<attributes/>
</pipeline>

View file

@ -102,7 +102,7 @@
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>1328</xloc>
<xloc>1504</xloc>
<yloc>496</yloc>
</GUI>
</transform>
@ -137,7 +137,7 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1328</xloc>
<xloc>1504</xloc>
<yloc>320</yloc>
</GUI>
</transform>
@ -168,7 +168,7 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1856</xloc>
<xloc>2032</xloc>
<yloc>176</yloc>
</GUI>
</transform>
@ -214,7 +214,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
</partitioning>
<attributes/>
<GUI>
<xloc>1536</xloc>
<xloc>1712</xloc>
<yloc>176</yloc>
</GUI>
</transform>
@ -250,7 +250,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
<send_true_to>Change job status on success</send_true_to>
<attributes/>
<GUI>
<xloc>1536</xloc>
<xloc>1712</xloc>
<yloc>304</yloc>
</GUI>
</transform>
@ -301,7 +301,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
<attributes/>
<GUI>
<xloc>688</xloc>
<yloc>176</yloc>
<yloc>16</yloc>
</GUI>
</transform>
<transform>
@ -319,7 +319,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
<attributes/>
<GUI>
<xloc>880</xloc>
<yloc>176</yloc>
<yloc>16</yloc>
</GUI>
</transform>
<transform>
@ -335,6 +335,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
</partitioning>
<connection>postgres.subpoena</connection>
<execute_each_row>N</execute_each_row>
<limit/>
<sql>SELECT
s.id, --id повестки
CASE
@ -367,17 +368,24 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
--, --УН заказного почтового отправления // искать в subpoena_send_info
s.status_id, --статус // ссылка на справочник subpoena_status/// AS subpoena_status
s.create_date, --дата создания // для загрузки данных
s.status_change_date --дата обновления // для загрузки данных (timestamp without time zone)
s.status_change_date, --дата обновления // для загрузки данных (timestamp without time zone)
sr.type AS subpoena_reason_type
-- поля для карточки, раздел "Сведения о направлении повестки военного комиссариата"
FROM public.subpoena s
join public.subpoena_status ss on s.status_id = ss.id
join public.subpoena_reason sr on sr.id = s.reason_id
WHERE
'${IDM_ID}' != '' -- Проверка на пустую строку
AND s.department_id = '${IDM_ID}'
AND '${M_R_CR_DATE}' >= s.create_date
${LIMIT_FW}</sql>
<variables_active>Y</variables_active>
<attributes/>
@ -456,6 +464,10 @@ ${LIMIT_FW}</sql>
<column_name>status_change_date</column_name>
<stream_name>status_change_date</stream_name>
</field>
<field>
<column_name>subpoena_reason_type</column_name>
<stream_name>subpoena_reason_type</stream_name>
</field>
</fields>
<ignore_errors>N</ignore_errors>
<only_when_have_rows>N</only_when_have_rows>
@ -501,30 +513,6 @@ ${LIMIT_FW}</sql>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_sent_summons</field>
<name>has_sent_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_served_summons</field>
<name>has_served_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>appeared_to_recruitment_center</field>
<name>appeared_to_recruitment_center</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>not_appeared_by_valid_excuse</field>
<name>not_appeared_by_valid_excuse</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
<value>
@ -548,7 +536,7 @@ ${LIMIT_FW}</sql>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1328</xloc>
<xloc>1504</xloc>
<yloc>176</yloc>
</GUI>
</transform>
@ -598,7 +586,7 @@ ${LIMIT_FW}</sql>
<attributes/>
<GUI>
<xloc>1104</xloc>
<yloc>176</yloc>
<yloc>16</yloc>
</GUI>
</transform>
<transform_error_handling>

View file

@ -102,8 +102,8 @@
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>1392</xloc>
<yloc>528</yloc>
<xloc>1440</xloc>
<yloc>880</yloc>
</GUI>
</transform>
<transform>
@ -137,8 +137,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1392</xloc>
<yloc>352</yloc>
<xloc>1440</xloc>
<yloc>704</yloc>
</GUI>
</transform>
<transform>
@ -168,8 +168,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1872</xloc>
<yloc>208</yloc>
<xloc>1920</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform>
@ -200,8 +200,8 @@ where job_name = '${JOB_NAME}'
and recruitment_id = '${IDM_ID}';</sql>
<attributes/>
<GUI>
<xloc>352</xloc>
<yloc>352</yloc>
<xloc>400</xloc>
<yloc>704</yloc>
</GUI>
</transform>
<transform>
@ -217,8 +217,8 @@ and recruitment_id = '${IDM_ID}';</sql>
</partitioning>
<attributes/>
<GUI>
<xloc>1632</xloc>
<yloc>208</yloc>
<xloc>1680</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform>
@ -253,8 +253,8 @@ and recruitment_id = '${IDM_ID}';</sql>
<send_true_to>Change job status on success</send_true_to>
<attributes/>
<GUI>
<xloc>1632</xloc>
<yloc>320</yloc>
<xloc>1680</xloc>
<yloc>496</yloc>
</GUI>
</transform>
<transform>
@ -303,8 +303,8 @@ and recruitment_id = '${IDM_ID}';</sql>
<prefix>grp</prefix>
<attributes/>
<GUI>
<xloc>752</xloc>
<yloc>208</yloc>
<xloc>800</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform>
@ -321,8 +321,8 @@ and recruitment_id = '${IDM_ID}';</sql>
<resultfieldname>last_row</resultfieldname>
<attributes/>
<GUI>
<xloc>944</xloc>
<yloc>208</yloc>
<xloc>992</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform>
@ -417,12 +417,17 @@ and recruitment_id = '${IDM_ID}';</sql>
<rename>status_change_date</rename>
<update>Y</update>
</value>
<value>
<name>subpoena_reason_type</name>
<rename>subpoena_reason_type</rename>
<update>Y</update>
</value>
</lookup>
<update_bypassed>N</update_bypassed>
<attributes/>
<GUI>
<xloc>752</xloc>
<yloc>352</yloc>
<xloc>800</xloc>
<yloc>704</yloc>
</GUI>
</transform>
<transform>
@ -438,6 +443,7 @@ and recruitment_id = '${IDM_ID}';</sql>
</partitioning>
<connection>postgres.subpoena</connection>
<execute_each_row>N</execute_each_row>
<limit/>
<sql>SELECT
s.id, --id повестки
CASE
@ -470,12 +476,13 @@ and recruitment_id = '${IDM_ID}';</sql>
--, --УН заказного почтового отправления // искать в subpoena_send_info
s.status_id, --статус // ссылка на справочник subpoena_status/// AS subpoena_status
s.create_date, --дата создания // для загрузки данных
s.status_change_date --дата обновления // для загрузки данных (timestamp without time zone)
s.status_change_date, --дата обновления // для загрузки данных (timestamp without time zone)
sr.type AS subpoena_reason_type
-- поля для карточки, раздел "Сведения о направлении повестки военного комиссариата"
FROM public.subpoena s
join public.subpoena_status ss on s.status_id = ss.id
join public.subpoena_reason sr on sr.id = s.reason_id
WHERE
'${IDM_ID}' != '' -- Проверка на пустую строку
AND s.department_id = '${IDM_ID}'
@ -485,8 +492,8 @@ ${LIMIT_FW}</sql>
<variables_active>Y</variables_active>
<attributes/>
<GUI>
<xloc>560</xloc>
<yloc>352</yloc>
<xloc>608</xloc>
<yloc>704</yloc>
</GUI>
</transform>
<transform>
@ -503,37 +510,31 @@ ${LIMIT_FW}</sql>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_sent_summons</field>
<name>has_sent_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_served_summons</field>
<name>has_served_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>appeared_to_recruitment_center</field>
<name>appeared_to_recruitment_center</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>not_appeared_by_valid_excuse</field>
<name>not_appeared_by_valid_excuse</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
@ -558,8 +559,8 @@ ${LIMIT_FW}</sql>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1392</xloc>
<yloc>208</yloc>
<xloc>1440</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform>
@ -607,8 +608,8 @@ ${LIMIT_FW}</sql>
</formula>
<attributes/>
<GUI>
<xloc>1168</xloc>
<yloc>208</yloc>
<xloc>1216</xloc>
<yloc>384</yloc>
</GUI>
</transform>
<transform_error_handling>

View file

@ -102,8 +102,8 @@
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>400</yloc>
<xloc>1472</xloc>
<yloc>752</yloc>
</GUI>
</transform>
<transform>
@ -137,8 +137,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>208</yloc>
<xloc>1472</xloc>
<yloc>560</yloc>
</GUI>
</transform>
<transform>
@ -168,8 +168,8 @@ and recruitment_id = '${IDM_ID}';
</sql>
<attributes/>
<GUI>
<xloc>1776</xloc>
<yloc>64</yloc>
<xloc>1936</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -215,8 +215,8 @@ DO UPDATE SET
</sql>
<attributes/>
<GUI>
<xloc>272</xloc>
<yloc>208</yloc>
<xloc>432</xloc>
<yloc>560</yloc>
</GUI>
</transform>
<transform>
@ -232,8 +232,8 @@ DO UPDATE SET
</partitioning>
<attributes/>
<GUI>
<xloc>1568</xloc>
<yloc>64</yloc>
<xloc>1728</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -268,8 +268,8 @@ DO UPDATE SET
<send_true_to>Change job status on success</send_true_to>
<attributes/>
<GUI>
<xloc>1568</xloc>
<yloc>176</yloc>
<xloc>1728</xloc>
<yloc>464</yloc>
</GUI>
</transform>
<transform>
@ -318,8 +318,8 @@ DO UPDATE SET
<prefix>grp</prefix>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>64</yloc>
<xloc>832</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -336,8 +336,8 @@ DO UPDATE SET
<resultfieldname>last_row</resultfieldname>
<attributes/>
<GUI>
<xloc>864</xloc>
<yloc>64</yloc>
<xloc>1024</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -432,12 +432,17 @@ DO UPDATE SET
<rename>status_change_date</rename>
<update>Y</update>
</value>
<value>
<name>subpoena_reason_type</name>
<rename>subpoena_reason_type</rename>
<update>Y</update>
</value>
</lookup>
<update_bypassed>N</update_bypassed>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>208</yloc>
<xloc>832</xloc>
<yloc>560</yloc>
</GUI>
</transform>
<transform>
@ -453,6 +458,7 @@ DO UPDATE SET
</partitioning>
<connection>postgres.subpoena</connection>
<execute_each_row>N</execute_each_row>
<limit/>
<sql>SELECT
s.id, --id повестки
CASE
@ -485,12 +491,13 @@ DO UPDATE SET
--, --УН заказного почтового отправления // искать в subpoena_send_info
s.status_id, --статус // ссылка на справочник subpoena_status/// AS subpoena_status
s.create_date, --дата создания // для загрузки данных
s.status_change_date --дата обновления // для загрузки данных (timestamp without time zone)
s.status_change_date, --дата обновления // для загрузки данных (timestamp without time zone)
sr.type AS subpoena_reason_type
-- поля для карточки, раздел "Сведения о направлении повестки военного комиссариата"
FROM public.subpoena s
join public.subpoena_status ss on s.status_id = ss.id
join public.subpoena_reason sr on sr.id = s.reason_id
WHERE
'${IDM_ID}' != '' -- Проверка на пустую строку
AND s.department_id = '${IDM_ID}'
@ -500,8 +507,8 @@ ${LIMIT_FW}</sql>
<variables_active>Y</variables_active>
<attributes/>
<GUI>
<xloc>480</xloc>
<yloc>208</yloc>
<xloc>640</xloc>
<yloc>560</yloc>
</GUI>
</transform>
<transform>
@ -518,37 +525,31 @@ ${LIMIT_FW}</sql>
<commit>10000</commit>
<connection>ervu-dashboard</connection>
<error_ignored>Y</error_ignored>
<ignore_flag_field/>
<lookup>
<key>
<condition>=</condition>
<field>recruit_id</field>
<name>recruit_id</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_sent_summons</field>
<name>has_sent_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>has_served_summons</field>
<name>has_served_summons</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>appeared_to_recruitment_center</field>
<name>appeared_to_recruitment_center</name>
<name2/>
</key>
<key>
<condition>&lt;></condition>
<field>not_appeared_by_valid_excuse</field>
<name>not_appeared_by_valid_excuse</name>
<name2/>
</key>
<schema>ervu_dashboard</schema>
<table>citizen</table>
@ -573,8 +574,8 @@ ${LIMIT_FW}</sql>
<use_batch>Y</use_batch>
<attributes/>
<GUI>
<xloc>1312</xloc>
<yloc>64</yloc>
<xloc>1472</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform>
@ -622,8 +623,8 @@ ${LIMIT_FW}</sql>
</formula>
<attributes/>
<GUI>
<xloc>1088</xloc>
<yloc>64</yloc>
<xloc>1248</xloc>
<yloc>352</yloc>
</GUI>
</transform>
<transform_error_handling>