optimization
This commit is contained in:
parent
9b401c39ef
commit
9e668e5e93
17 changed files with 973 additions and 24335 deletions
|
|
@ -36,7 +36,7 @@
|
|||
<type>SUCCESS</type>
|
||||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1184</xloc>
|
||||
<xloc>1344</xloc>
|
||||
<yloc>240</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
<params_from_previous>N</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
<set_logfile>Y</set_logfile>
|
||||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>720</xloc>
|
||||
|
|
@ -110,10 +110,34 @@
|
|||
<set_logfile>N</set_logfile>
|
||||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>928</xloc>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>240</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
<name>job_info_recruits.hwf</name>
|
||||
<description/>
|
||||
<type>WORKFLOW</type>
|
||||
<attributes/>
|
||||
<add_date>N</add_date>
|
||||
<add_time>N</add_time>
|
||||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<filename>${PROJECT_HOME}/info_recruits/job_info_recruits.hwf</filename>
|
||||
<loglevel>Nothing</loglevel>
|
||||
<parameters>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>896</xloc>
|
||||
<yloc>368</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
</actions>
|
||||
<hops>
|
||||
<hop>
|
||||
|
|
@ -130,13 +154,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_recruitments_all</from>
|
||||
<to>job_last_recording_date</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_last_recording_date</from>
|
||||
<to>Success</to>
|
||||
|
|
@ -144,28 +161,22 @@
|
|||
<evaluation>N</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_recruitments_all</from>
|
||||
<to>job_info_recruits.hwf</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_info_recruits.hwf</from>
|
||||
<to>job_last_recording_date</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</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>688</xloc>
|
||||
<yloc>128</yloc>
|
||||
<note>перед отправкой сменить коннект в субпоену</note>
|
||||
<width>263</width>
|
||||
</notepad>
|
||||
</notepads>
|
||||
<attributes>
|
||||
<group>
|
||||
|
|
|
|||
|
|
@ -218,8 +218,6 @@
|
|||
<create_parent_folder>N</create_parent_folder>
|
||||
<exec_per_row>N</exec_per_row>
|
||||
<filename>${PROJECT_HOME}\mil_com\parameters\add_schema.hpl</filename>
|
||||
<logext/>
|
||||
<logfile/>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
|
|
@ -256,35 +254,35 @@
|
|||
<hop>
|
||||
<from>job_recruitments_region.hwf</from>
|
||||
<to>job_recruitments_mildis.hwf</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_ratings.hwf</from>
|
||||
<to>Success 3</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_recruitments_region.hwf</from>
|
||||
<to>job_ratings.hwf</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_recruitments_mildis.hwf</from>
|
||||
<to>job_recruitments_country.hwf</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>job_recruitments_country.hwf</from>
|
||||
<to>Success 2</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
|
|
@ -298,14 +296,14 @@
|
|||
<hop>
|
||||
<from>add_schema.hpl</from>
|
||||
<to>job_recruitments_region.hwf</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>add_schema.hpl</from>
|
||||
<to>Success</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
2025/01/17 17:31:28 - main_dashboard.total_registered(m_c).hpl - Using run configuration [local]
|
||||
2025/01/17 17:31:28 - main_dashboard.total_registered(m_c) - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/17 17:31:28 - main_dashboard.total_registered(m_c) - Execution started for pipeline [main_dashboard.total_registered(m_c)]
|
||||
2025/01/17 17:31:28 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:28 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/17 17:31:28 - Table input (person_registry) регион.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:28 - Table input (person_registry) регион.0 - Finished processing (I=159, O=0, R=0, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:33 - Insert / update (main_dashboard.total_registered) 2.0 - Finished processing (I=159, O=0, R=159, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:33 - main_dashboard.total_registered(m_c) - Pipeline duration : 5.424 seconds [ 5.424" ]
|
||||
2025/01/17 17:31:33 - main_dashboard.total_registered(m_c) - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/21 17:00:40 - main_dashboard.total_registered(m_c).hpl - Using run configuration [local]
|
||||
2025/01/21 17:00:40 - main_dashboard.total_registered(m_c) - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/21 17:00:40 - main_dashboard.total_registered(m_c) - Execution started for pipeline [main_dashboard.total_registered(m_c)]
|
||||
2025/01/21 17:00:40 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/21 17:00:40 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/21 17:00:40 - Table input (person_registry) регион.0 - Finished reading query, closing connection.
|
||||
2025/01/21 17:00:40 - Table input (person_registry) регион.0 - Finished processing (I=158, O=0, R=0, W=158, U=0, E=0)
|
||||
2025/01/21 17:00:41 - Insert / update (main_dashboard.total_registered) 2.0 - Finished processing (I=158, O=0, R=158, W=158, U=0, E=0)
|
||||
2025/01/21 17:00:41 - main_dashboard.total_registered(m_c) - Pipeline duration : 0.585 seconds [ 0.585" ]
|
||||
2025/01/21 17:00:41 - main_dashboard.total_registered(m_c) - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,368 +0,0 @@
|
|||
2025/01/16 10:43:11 - job_recruitments_country - Start of workflow execution
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [select_recruitments_country]
|
||||
2025/01/16 10:43:11 - select_recruitments_country - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - select_recruitments_country - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - select_recruitments_country - Execution started for pipeline [select_recruitments_country]
|
||||
2025/01/16 10:43:11 - Table input/регион.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input/регион.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Copy rows to result.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - select_recruitments_country - Pipeline duration : 0.042 seconds [ 0.042" ]
|
||||
2025/01/16 10:43:11 - select_recruitments_country - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [main_dashboard.appeals]
|
||||
2025/01/16 10:43:11 - main_dashboard.appeals - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - main_dashboard.appeals - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - main_dashboard.appeals - Execution started for pipeline [main_dashboard.appeals]
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Table input (appeal_document) РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input (appeal_document) РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Get variables 3 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Select values 3 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Insert / update (main_dashboard.appeals) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - main_dashboard.appeals - Pipeline duration : 0.075 seconds [ 0.075" ]
|
||||
2025/01/16 10:43:11 - main_dashboard.appeals - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [Success]
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [Success] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [main_dashboard.appeals] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [main_dashboard.recruitment_campaign]
|
||||
2025/01/16 10:43:11 - main_dashboard.recruitment_campaign - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - main_dashboard.recruitment_campaign - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - main_dashboard.recruitment_campaign - Execution started for pipeline [main_dashboard.recruitment_campaign]
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=2, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Table input (subpoena) РФ/осень.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input (subpoena) РФ/весна.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input (subpoena) РФ/весна.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Table input (subpoena) РФ/осень.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Insert / update (main_dashboard.recruitment_campaign).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Insert / update (main_dashboard.recruitment_campaign) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - main_dashboard.recruitment_campaign - Pipeline duration : 0.087 seconds [ 0.087" ]
|
||||
2025/01/16 10:43:11 - main_dashboard.recruitment_campaign - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [Success 2]
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [Success 2] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [main_dashboard.recruitment_campaign] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [main_dashboard.total_registered]
|
||||
2025/01/16 10:43:11 - main_dashboard.total_registered - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - main_dashboard.total_registered - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - main_dashboard.total_registered - Execution started for pipeline [main_dashboard.total_registered]
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Table input (person_registry) РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input (person_registry) РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Insert / update (main_dashboard.total_registered).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - main_dashboard.total_registered - Pipeline duration : 0.066 seconds [ 0.066" ]
|
||||
2025/01/16 10:43:11 - main_dashboard.total_registered - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [Success 3]
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [Success 3] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [main_dashboard.total_registered] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [main_dashboard.waiting_registration]
|
||||
2025/01/16 10:43:11 - main_dashboard.waiting_registration - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - main_dashboard.waiting_registration - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - main_dashboard.waiting_registration - Execution started for pipeline [main_dashboard.waiting_registration]
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Table input 2 (person_registry) РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:11 - Table input 2 (person_registry) РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - Insert / update (main_dashboard.waiting_registration).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:11 - main_dashboard.waiting_registration - Pipeline duration : 0.106 seconds [ 0.106" ]
|
||||
2025/01/16 10:43:11 - main_dashboard.waiting_registration - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [Success 4]
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [Success 4] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Finished action [main_dashboard.waiting_registration] (result=[true])
|
||||
2025/01/16 10:43:11 - job_recruitments_country - Starting action [recruitment_campaign.subpoenas]
|
||||
2025/01/16 10:43:11 - recruitment_campaign.subpoenas - Using run configuration [local]
|
||||
2025/01/16 10:43:11 - recruitment_campaign.subpoenas - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:11 - recruitment_campaign.subpoenas - Execution started for pipeline [recruitment_campaign.subpoenas]
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=2, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (subpoena) осень/РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Table input (subpoena) Весна/РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Table input (subpoena) осень/РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (subpoena) Весна/РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (recruitment_campaign.subpoenas).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (recruitment_campaign.subpoenas) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - recruitment_campaign.subpoenas - Pipeline duration : 0.115 seconds [ 0.115" ]
|
||||
2025/01/16 10:43:12 - recruitment_campaign.subpoenas - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [Success 6]
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [Success 6] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [recruitment_campaign.subpoenas] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [total_registered.reg_mil_cat]
|
||||
2025/01/16 10:43:12 - total_registered.reg_mil_cat - Using run configuration [local]
|
||||
2025/01/16 10:43:12 - total_registered.reg_mil_cat - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - total_registered.reg_mil_cat - Execution started for pipeline [total_registered.reg_mil_cat]
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=2, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (person_registry) РФ/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Table input (person_registry) РФ/не на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (person_registry) РФ/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (person_registry) РФ/не на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (total_registered.reg_mil_cat).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (total_registered.reg_mil_cat) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - total_registered.reg_mil_cat - Pipeline duration : 0.136 seconds [ 0.136" ]
|
||||
2025/01/16 10:43:12 - total_registered.reg_mil_cat - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [Success 7]
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [Success 7] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [total_registered.reg_mil_cat] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [total_registered.removed_registry]
|
||||
2025/01/16 10:43:12 - total_registered.removed_registry - Using run configuration [local]
|
||||
2025/01/16 10:43:12 - total_registered.removed_registry - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - total_registered.removed_registry - Execution started for pipeline [total_registered.removed_registry]
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (decision-document-service) РФ.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Table input (decision-document-service) РФ.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (total_registered.removed_registry).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - total_registered.removed_registry - Pipeline duration : 0.192 seconds [ 0.192" ]
|
||||
2025/01/16 10:43:12 - total_registered.removed_registry - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [Success 8]
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [Success 8] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [total_registered.removed_registry] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [total_registered.subpoenas]
|
||||
2025/01/16 10:43:12 - total_registered.subpoenas - Using run configuration [local]
|
||||
2025/01/16 10:43:12 - total_registered.subpoenas - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - total_registered.subpoenas - Execution started for pipeline [total_registered.subpoenas]
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=2, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (subpoena) РФ/не рег.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Table input (subpoena)РФ/рег.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (subpoena) РФ/не рег.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Table input (subpoena)РФ/рег.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (total_registered.subpoenas).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - Insert / update (total_registered.subpoenas) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:12 - total_registered.subpoenas - Pipeline duration : 0.443 seconds [ 0.443" ]
|
||||
2025/01/16 10:43:12 - total_registered.subpoenas - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [Success 9]
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [Success 9] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Finished action [total_registered.subpoenas] (result=[true])
|
||||
2025/01/16 10:43:12 - job_recruitments_country - Starting action [total_registered.driver_license]
|
||||
2025/01/16 10:43:12 - total_registered.driver_license - Using run configuration [local]
|
||||
2025/01/16 10:43:12 - total_registered.driver_license - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:12 - total_registered.driver_license - Execution started for pipeline [total_registered.driver_license]
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:12 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=3, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.driver_license) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.driver_license) 2 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.driver_license) 2 2 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - total_registered.driver_license - Pipeline duration : 0.149 seconds [ 0.149" ]
|
||||
2025/01/16 10:43:13 - total_registered.driver_license - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [Success 10]
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [Success 10] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [total_registered.driver_license] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [total_registered.child_minor]
|
||||
2025/01/16 10:43:13 - total_registered.child_minor - Using run configuration [local]
|
||||
2025/01/16 10:43:13 - total_registered.child_minor - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - total_registered.child_minor - Execution started for pipeline [total_registered.child_minor]
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=3, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/мужчины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/женщины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/все.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/мужчины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/женщины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry)РФ/все.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.child_minor) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.child_minor).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.child_minor) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - total_registered.child_minor - Pipeline duration : 0.116 seconds [ 0.116" ]
|
||||
2025/01/16 10:43:13 - total_registered.child_minor - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [Success 11]
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [Success 11] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [total_registered.child_minor] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [total_registered.age]
|
||||
2025/01/16 10:43:13 - total_registered.age - Using run configuration [local]
|
||||
2025/01/16 10:43:13 - total_registered.age - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - total_registered.age - Execution started for pipeline [total_registered.age]
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=6, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/не на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 5.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/не на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/не на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/не на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 6.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 5.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 6.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/не на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/не на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 4.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 4.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age) 4.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age) 3 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age) 2 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.age) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - total_registered.age - Pipeline duration : 0.208 seconds [ 0.208" ]
|
||||
2025/01/16 10:43:13 - total_registered.age - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [Success 12]
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [Success 12] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [total_registered.age] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [total_registered.marital_status]
|
||||
2025/01/16 10:43:13 - total_registered.marital_status - Using run configuration [local]
|
||||
2025/01/16 10:43:13 - total_registered.marital_status - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - total_registered.marital_status - Execution started for pipeline [total_registered.marital_status]
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=3, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.marital_status) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.marital_status) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.marital_status) .0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - total_registered.marital_status - Pipeline duration : 0.142 seconds [ 0.142" ]
|
||||
2025/01/16 10:43:13 - total_registered.marital_status - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [Success 13]
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [Success 13] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [total_registered.marital_status] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [total_registered.education_level]
|
||||
2025/01/16 10:43:13 - total_registered.education_level - Using run configuration [local]
|
||||
2025/01/16 10:43:13 - total_registered.education_level - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - total_registered.education_level - Execution started for pipeline [total_registered.education_level]
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=3, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.education_level) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.education_level) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Insert / update (total_registered.education_level).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - total_registered.education_level - Pipeline duration : 0.162 seconds [ 0.162" ]
|
||||
2025/01/16 10:43:13 - total_registered.education_level - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [Success 14]
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [Success 14] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Finished action [total_registered.education_level] (result=[true])
|
||||
2025/01/16 10:43:13 - job_recruitments_country - Starting action [total_registered.busyness]
|
||||
2025/01/16 10:43:13 - total_registered.busyness - Using run configuration [local]
|
||||
2025/01/16 10:43:13 - total_registered.busyness - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:13 - total_registered.busyness - Execution started for pipeline [total_registered.busyness]
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=6, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете 2.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/на учете 2.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете 2.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/на учете 2.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете 2.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете 2.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2 4.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2 3.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/все/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/женщины/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:13 - Table input (person_registry) РФ/мужчины/на учете.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:14 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Table input (person_registry) РФ/мужчины/на учете.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Select values 2 2 4.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness) 3 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness) 3.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness) 2 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (total_registered.busyness) 4.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - total_registered.busyness - Pipeline duration : 0.191 seconds [ 0.191" ]
|
||||
2025/01/16 10:43:14 - total_registered.busyness - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Starting action [Success 15]
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Finished action [Success 15] (result=[true])
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Finished action [total_registered.busyness] (result=[true])
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Starting action [recruitment_campaign.appeals]
|
||||
2025/01/16 10:43:14 - recruitment_campaign.appeals - Using run configuration [local]
|
||||
2025/01/16 10:43:14 - recruitment_campaign.appeals - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/16 10:43:14 - recruitment_campaign.appeals - Execution started for pipeline [recruitment_campaign.appeals]
|
||||
2025/01/16 10:43:14 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:14 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=2, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Table input (appeal_document) РФ/весна.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:14 - Table input (appeal_document) РФ/осень.0 - Finished reading query, closing connection.
|
||||
2025/01/16 10:43:14 - Table input (appeal_document) РФ/весна.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Table input (appeal_document) РФ/осень.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Get variables 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Select values 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Get variables 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Select values 2 2 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (main_dashboard.appeals).0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - Insert / update (main_dashboard.appeals) 2.0 - Finished processing (I=1, O=1, R=1, W=1, U=0, E=0)
|
||||
2025/01/16 10:43:14 - recruitment_campaign.appeals - Pipeline duration : 0.094 seconds [ 0.094" ]
|
||||
2025/01/16 10:43:14 - recruitment_campaign.appeals - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Starting action [Success 16]
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Finished action [Success 16] (result=[true])
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Finished action [recruitment_campaign.appeals] (result=[true])
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Finished action [select_recruitments_country] (result=[true])
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Workflow execution finished
|
||||
2025/01/16 10:43:14 - job_recruitments_country - Workflow duration : 2.671 seconds [ 2.670" ]
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
2025/01/17 17:31:23 - job_recruitments_milcom - Start of workflow execution
|
||||
2025/01/17 17:31:23 - job_recruitments_milcom - Starting action [array_recruitments.hpl]
|
||||
2025/01/17 17:31:23 - array_recruitments.hpl - Using run configuration [local]
|
||||
2025/01/17 17:31:23 - array_recruitments - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/17 17:31:23 - array_recruitments - Execution started for pipeline [array_recruitments]
|
||||
2025/01/17 17:31:23 - Table input.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:23 - Table input.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/17 17:31:23 - Copy rows to result.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
|
||||
2025/01/17 17:31:23 - array_recruitments - Pipeline duration : 0.134 seconds [ 0.134" ]
|
||||
2025/01/17 17:31:23 - array_recruitments - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/17 17:31:23 - job_recruitments_milcom - Starting action [main_dashboard.appeals(m_c).hpl]
|
||||
2025/01/17 17:31:23 - main_dashboard.appeals(m_c).hpl - Using run configuration [local]
|
||||
2025/01/17 17:31:23 - main_dashboard.appeals(m_c) - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/17 17:31:23 - main_dashboard.appeals(m_c) - Execution started for pipeline [main_dashboard.appeals(m_c)]
|
||||
2025/01/17 17:31:23 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:23 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/17 17:31:23 - Table input (appeal_document) регионы.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:23 - Table input (appeal_document) регионы.0 - Finished processing (I=159, O=0, R=0, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:28 - Insert / update (main_dashboard.appeals) 2.0 - Finished processing (I=159, O=0, R=159, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:28 - main_dashboard.appeals(m_c) - Pipeline duration : 4.769 seconds [ 4.769" ]
|
||||
2025/01/17 17:31:28 - main_dashboard.appeals(m_c) - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/17 17:31:28 - job_recruitments_milcom - Starting action [Success]
|
||||
2025/01/17 17:31:28 - job_recruitments_milcom - Finished action [Success] (result=[true])
|
||||
2025/01/17 17:31:28 - job_recruitments_milcom - Finished action [main_dashboard.appeals(m_c).hpl] (result=[true])
|
||||
2025/01/17 17:31:28 - job_recruitments_milcom - Starting action [main_dashboard.total_registered(m_c).hpl]
|
||||
2025/01/17 17:31:34 - job_recruitments_milcom - Starting action [Success 3]
|
||||
2025/01/17 17:31:34 - job_recruitments_milcom - Finished action [Success 3] (result=[true])
|
||||
2025/01/17 17:31:34 - job_recruitments_milcom - Finished action [main_dashboard.total_registered(m_c).hpl] (result=[true])
|
||||
2025/01/17 17:31:34 - job_recruitments_milcom - Starting action [main_dashboard.waiting_registration(m_c).hpl]
|
||||
2025/01/17 17:31:34 - main_dashboard.waiting_registration(m_c).hpl - Using run configuration [local]
|
||||
2025/01/17 17:31:34 - main_dashboard.waiting_registration(m_c) - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
|
||||
2025/01/17 17:31:34 - main_dashboard.waiting_registration(m_c) - Execution started for pipeline [main_dashboard.waiting_registration(m_c)]
|
||||
2025/01/17 17:31:34 - Execute SQL script.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:34 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
|
||||
2025/01/17 17:31:34 - Table input 2 (person_registry) регион.0 - Finished reading query, closing connection.
|
||||
2025/01/17 17:31:34 - Table input 2 (person_registry) регион.0 - Finished processing (I=159, O=0, R=0, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:39 - Insert / update (main_dashboard.waiting_registration) 2.0 - Finished processing (I=159, O=0, R=159, W=159, U=0, E=0)
|
||||
2025/01/17 17:31:39 - main_dashboard.waiting_registration(m_c) - Pipeline duration : 5.859 seconds [ 5.859" ]
|
||||
2025/01/17 17:31:39 - main_dashboard.waiting_registration(m_c) - Execution finished on a local pipeline engine with run configuration 'local'
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Starting action [Success 4]
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Finished action [Success 4] (result=[true])
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Finished action [main_dashboard.waiting_registration(m_c).hpl] (result=[true])
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Finished action [array_recruitments.hpl] (result=[true])
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Workflow execution finished
|
||||
2025/01/17 17:31:39 - job_recruitments_milcom - Workflow duration : 16.795 seconds [ 16.795" ]
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -128,14 +128,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/main_dashboard.recruitment_campaign(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -145,7 +145,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>800</yloc>
|
||||
<yloc>1072</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>800</yloc>
|
||||
<yloc>1072</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -254,14 +254,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/recruitment_campaign.subpoenas(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -271,7 +271,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1152</yloc>
|
||||
<yloc>1536</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -281,7 +281,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1152</yloc>
|
||||
<yloc>1536</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -379,12 +379,8 @@
|
|||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
<name>ARR_MC</name>
|
||||
<stream_name>ARRAY_MIL_COM</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
|
|
@ -395,7 +391,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1344</yloc>
|
||||
<yloc>512</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -405,7 +401,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1344</yloc>
|
||||
<yloc>512</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -423,12 +419,8 @@
|
|||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
<name>ARR_MC</name>
|
||||
<stream_name>ARRAY_MIL_COM</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
|
|
@ -439,7 +431,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1424</yloc>
|
||||
<yloc>576</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -449,7 +441,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1424</yloc>
|
||||
<yloc>576</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -468,14 +460,14 @@
|
|||
<logfile>C:\Users\acer\Desktop\лог</logfile>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -485,7 +477,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1488</yloc>
|
||||
<yloc>640</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -495,7 +487,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1488</yloc>
|
||||
<yloc>640</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -512,14 +504,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/total_registered.age(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -529,7 +521,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1568</yloc>
|
||||
<yloc>1840</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -539,7 +531,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1568</yloc>
|
||||
<yloc>1840</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -556,14 +548,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/total_registered.marital_status(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -573,7 +565,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1648</yloc>
|
||||
<yloc>1920</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -583,7 +575,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1648</yloc>
|
||||
<yloc>1920</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -600,14 +592,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/total_registered.education_level(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -617,7 +609,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1728</yloc>
|
||||
<yloc>2000</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -627,7 +619,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1728</yloc>
|
||||
<yloc>2000</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -644,14 +636,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/total_registered.busyness(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -661,7 +653,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1808</yloc>
|
||||
<yloc>2080</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -671,7 +663,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1808</yloc>
|
||||
<yloc>2080</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -688,14 +680,14 @@
|
|||
<filename>${PROJECT_HOME}/mil_com/recruitment_campaign.appeals(m_c).hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>SCM</name>
|
||||
<stream_name>SCHEMA</stream_name>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>REC_ID</name>
|
||||
<stream_name>RECRUITMENT_ID</stream_name>
|
||||
</parameter>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>Y</params_from_previous>
|
||||
|
|
@ -705,7 +697,7 @@
|
|||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1088</xloc>
|
||||
<yloc>1888</yloc>
|
||||
<yloc>2160</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -715,7 +707,7 @@
|
|||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1296</xloc>
|
||||
<yloc>1888</yloc>
|
||||
<yloc>2160</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
|
|
@ -744,42 +736,6 @@
|
|||
<yloc>464</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
<name>add_schema.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}/mil_com/parameters/add_schema.hpl</filename>
|
||||
<loglevel>Basic</loglevel>
|
||||
<parameters>
|
||||
<pass_all_parameters>Y</pass_all_parameters>
|
||||
</parameters>
|
||||
<params_from_previous>N</params_from_previous>
|
||||
<run_configuration>local</run_configuration>
|
||||
<set_append_logfile>N</set_append_logfile>
|
||||
<set_logfile>N</set_logfile>
|
||||
<wait_until_finished>Y</wait_until_finished>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1536</xloc>
|
||||
<yloc>192</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
<action>
|
||||
<name>Success ALL</name>
|
||||
<description/>
|
||||
<type>SUCCESS</type>
|
||||
<attributes/>
|
||||
<parallel>N</parallel>
|
||||
<xloc>1728</xloc>
|
||||
<yloc>128</yloc>
|
||||
<attributes_hac/>
|
||||
</action>
|
||||
</actions>
|
||||
<hops>
|
||||
<hop>
|
||||
|
|
@ -883,14 +839,14 @@
|
|||
<hop>
|
||||
<from>Start</from>
|
||||
<to>select_recruitments_milcom(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>Y</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>main_dashboard.recruitment_campaign(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
|
|
@ -911,7 +867,7 @@
|
|||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>recruitment_campaign.subpoenas(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
|
|
@ -946,42 +902,42 @@
|
|||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>total_registered.child_minor(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>total_registered.age(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>total_registered.marital_status(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>total_registered.education_level(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>total_registered.busyness(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>select_recruitments_milcom(m_c).hpl</from>
|
||||
<to>recruitment_campaign.appeals(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
|
|
@ -992,20 +948,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Success</from>
|
||||
<to>add_schema.hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>add_schema.hpl</from>
|
||||
<to>Success ALL</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Start</from>
|
||||
<to>array_recruitments.hpl</to>
|
||||
|
|
@ -1027,13 +969,6 @@
|
|||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Success 3</from>
|
||||
<to>add_schema.hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>main_dashboard.waiting_registration(m_c).hpl</to>
|
||||
|
|
@ -1042,22 +977,36 @@
|
|||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Success 4</from>
|
||||
<to>add_schema.hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>total_registered.reg_mil_cat(m_c).hpl</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Success 7</from>
|
||||
<to>add_schema.hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>total_registered.removed_registry(m_c).hpl</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Success 8</from>
|
||||
<to>add_schema.hpl</to>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>total_registered.subpoenas(m_c).hpl</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>total_registered.driver_license(m_c).hpl</to>
|
||||
<enabled>Y</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>array_recruitments.hpl</from>
|
||||
<to>total_registered.child_minor(m_c).hpl</to>
|
||||
<enabled>N</enabled>
|
||||
<evaluation>Y</evaluation>
|
||||
<unconditional>N</unconditional>
|
||||
|
|
|
|||
|
|
@ -61,8 +61,11 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<delete_field/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<insert_field/>
|
||||
<quoteString>N</quoteString>
|
||||
<read_field/>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
|
|
@ -70,6 +73,7 @@
|
|||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
</sql>
|
||||
<update_field/>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>224</xloc>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,31 @@
|
|||
<to>Insert / update (main_dashboard.waiting_registration)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Insert / update (total_registered.reg_mil_cat)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Insert / update (total_registered.removed_registry)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Insert / update (total_registered.subpoenas)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Insert / update (total_registered.driver_license)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Insert / update (total_registered.child_minor)</to>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Insert / update (main_dashboard.appeals)</name>
|
||||
|
|
@ -183,6 +208,251 @@
|
|||
<yloc>208</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.child_minor)</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>recruitment_id</field>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>child_minor</table>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recording_date</name>
|
||||
<rename>recording_date</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>608</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.driver_license)</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>recruitment_id</field>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>driver_license</table>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recording_date</name>
|
||||
<rename>recording_date</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>528</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.reg_mil_cat)</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>recruitment_id</field>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>reg_mil_cat</table>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recording_date</name>
|
||||
<rename>recording_date</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>288</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.removed_registry)</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>recruitment_id</field>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>removed_registry</table>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recording_date</name>
|
||||
<rename>recording_date</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.subpoenas)</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>recruitment_id</field>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>subpoenas</table>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recording_date</name>
|
||||
<rename>recording_date</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>448</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Table input</name>
|
||||
<type>TableInput</type>
|
||||
|
|
@ -204,17 +474,18 @@
|
|||
WHEN schema = 'Department' THEN 'Department'
|
||||
WHEN schema = 'Organization' THEN 'REG_LVL'
|
||||
WHEN schema = 'Region' THEN 'MD_LVL'
|
||||
--WHEN schema = 'Ministry' THEN 'Ministry'
|
||||
ELSE schema -- на случай, если появится неизвестное значение
|
||||
END AS schema,
|
||||
current_date AS recording_date
|
||||
FROM
|
||||
ervu_dashboard.recruitment
|
||||
WHERE schema = 'Department' OR schema = 'Organization' OR schema = 'Region'</sql>
|
||||
WHERE schema in ('Department', 'Organization', 'Region') </sql>
|
||||
<variables_active>N</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>704</xloc>
|
||||
<yloc>304</yloc>
|
||||
<xloc>608</xloc>
|
||||
<yloc>528</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform_error_handling>
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ ARR_MC - параметр</note>
|
|||
FROM (
|
||||
SELECT idm_id
|
||||
FROM ervu_dashboard.recruitment
|
||||
WHERE schema in ('Department', 'Organization', 'Region')
|
||||
LIMIT 200
|
||||
) subquery;</sql>
|
||||
<variables_active>N</variables_active>
|
||||
|
|
|
|||
|
|
@ -31,11 +31,6 @@
|
|||
<to>Get variables 4 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 4 2</from>
|
||||
<to>Insert / update (total_registered.child_minor)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Get variables 4 2 2</from>
|
||||
<to>Select values 4 2 2</to>
|
||||
|
|
@ -81,42 +76,47 @@
|
|||
<to>Table input (person_registry)РФ/женщины</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 4 2</from>
|
||||
<to>Insert / update (total_registered.child_minor) 3</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Get variables 4 2</name>
|
||||
<type>GetVariable</type>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<distribute>N</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>REC_ID</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>SCM</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<delete_field/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<insert_field/>
|
||||
<quoteString>N</quoteString>
|
||||
<read_field/>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.child_minor
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
<update_field/>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1056</xloc>
|
||||
<yloc>272</yloc>
|
||||
<xloc>576</xloc>
|
||||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 4 2 2</name>
|
||||
<name>Get variables 4 2</name>
|
||||
<type>GetVariable</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
|
|
@ -148,6 +148,39 @@
|
|||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 4 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>REC_ID</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>SCM</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1056</xloc>
|
||||
<yloc>608</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 4 2 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
|
|
@ -178,111 +211,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1056</xloc>
|
||||
<yloc>464</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.child_minor)</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>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>child_minor</table>
|
||||
<value>
|
||||
<name>no_child</name>
|
||||
<rename>no_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"1_child"</name>
|
||||
<rename>one_child</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"2_child"</name>
|
||||
<rename>two_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"3_child"</name>
|
||||
<rename>three_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"4_more_child"</name>
|
||||
<rename>four_or_more_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"all_M_W"</name>
|
||||
<rename>gender</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>no_child_percent</name>
|
||||
<rename>no_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"1_child_percent"</name>
|
||||
<rename>one_child_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"2_child_percent"</name>
|
||||
<rename>two_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"3_child_percent"</name>
|
||||
<rename>three_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"4_more_child_percent"</name>
|
||||
<rename>four_or_more_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>total_count</name>
|
||||
<rename>total_count</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1504</xloc>
|
||||
<yloc>272</yloc>
|
||||
<yloc>704</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -386,7 +315,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1504</xloc>
|
||||
<yloc>368</yloc>
|
||||
<yloc>608</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -490,7 +419,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1504</xloc>
|
||||
<yloc>464</yloc>
|
||||
<yloc>704</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -544,7 +473,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1248</xloc>
|
||||
<yloc>272</yloc>
|
||||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -598,7 +527,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1248</xloc>
|
||||
<yloc>368</yloc>
|
||||
<yloc>608</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -652,7 +581,7 @@
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1248</xloc>
|
||||
<yloc>464</yloc>
|
||||
<yloc>704</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -753,7 +682,7 @@ FROM
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>816</xloc>
|
||||
<yloc>464</yloc>
|
||||
<yloc>704</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -854,7 +783,7 @@ FROM
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>816</xloc>
|
||||
<yloc>368</yloc>
|
||||
<yloc>608</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -944,39 +873,110 @@ FROM
|
|||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>816</xloc>
|
||||
<yloc>272</yloc>
|
||||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<name>Insert / update (total_registered.child_minor) 3</name>
|
||||
<type>InsertUpdate</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<commit>100</commit>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<delete_field/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<insert_field/>
|
||||
<quoteString>N</quoteString>
|
||||
<read_field/>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.child_minor
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
<update_field/>
|
||||
<lookup>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>child_minor</table>
|
||||
<value>
|
||||
<name>no_child</name>
|
||||
<rename>no_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"1_child"</name>
|
||||
<rename>one_child</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"2_child"</name>
|
||||
<rename>two_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"3_child"</name>
|
||||
<rename>three_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"4_more_child"</name>
|
||||
<rename>four_or_more_children</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"all_M_W"</name>
|
||||
<rename>gender</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>no_child_percent</name>
|
||||
<rename>no_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"1_child_percent"</name>
|
||||
<rename>one_child_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"2_child_percent"</name>
|
||||
<rename>two_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"3_child_percent"</name>
|
||||
<rename>three_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"4_more_child_percent"</name>
|
||||
<rename>four_or_more_children_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>total_count</name>
|
||||
<rename>total_count</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>576</xloc>
|
||||
<xloc>1504</xloc>
|
||||
<yloc>368</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
|
|
|
|||
|
|
@ -24,47 +24,17 @@
|
|||
<hop>
|
||||
<from>Get variables 3 2</from>
|
||||
<to>Select values 3 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 3 2</from>
|
||||
<to>Insert / update (total_registered.driver_license) 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Get variables 3 2 2</from>
|
||||
<to>Select values 3 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (driver_license) регионы/все</from>
|
||||
<to>Get variables 3 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 3 2 2</from>
|
||||
<to>Insert / update (total_registered.driver_license) 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Get variables 3 2 2 2</from>
|
||||
<to>Select values 3 2 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (person_registry) регионы/мужчины</from>
|
||||
<to>Get variables 3 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 3 2 2 2</from>
|
||||
<to>Insert / update (total_registered.driver_license) 2 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (person_registry) регионы/женщины</from>
|
||||
<to>Get variables 3 2 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
|
|
@ -72,16 +42,39 @@
|
|||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (person_registry) регионы/мужчины</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (person_registry) регионы/женщины</to>
|
||||
<from>Table input (driver_license) регионы/все</from>
|
||||
<to>Insert / update (total_registered.driver_license) 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<quoteString>N</quoteString>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.driver_license
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')</sql>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>512</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 3 2</name>
|
||||
<type>GetVariable</type>
|
||||
|
|
@ -111,74 +104,8 @@
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>224</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 3 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>REC_ID</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>SCM</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 3 2 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>REC_ID</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>SCM</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>544</yloc>
|
||||
<xloc>960</xloc>
|
||||
<yloc>496</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -198,12 +125,17 @@
|
|||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>"all_M_W"</field>
|
||||
<name>gender</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>driver_license</table>
|
||||
|
|
@ -272,11 +204,6 @@
|
|||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>nope_repcent</name>
|
||||
<rename>nope_percent</rename>
|
||||
|
|
@ -291,238 +218,10 @@
|
|||
<update_bypassed>Y</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1440</xloc>
|
||||
<yloc>224</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.driver_license) 2 2</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>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>driver_license</table>
|
||||
<value>
|
||||
<name>"A"</name>
|
||||
<rename>a</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"B"</name>
|
||||
<rename>b</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"C"</name>
|
||||
<rename>c</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"D"</name>
|
||||
<rename>d</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"E"</name>
|
||||
<rename>e</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>nope</name>
|
||||
<rename>nope</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"A_repcent"</name>
|
||||
<rename>a_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"B_repcent"</name>
|
||||
<rename>b_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"C_repcent"</name>
|
||||
<rename>c_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"D_repcent"</name>
|
||||
<rename>d_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"E_repcent"</name>
|
||||
<rename>e_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"all_M_W"</name>
|
||||
<rename>gender</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>nope_repcent</name>
|
||||
<rename>nope_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>total_count</name>
|
||||
<rename>total</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>Y</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1440</xloc>
|
||||
<xloc>1264</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.driver_license) 2 2 2</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>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>driver_license</table>
|
||||
<value>
|
||||
<name>"A"</name>
|
||||
<rename>a</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"B"</name>
|
||||
<rename>b</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"C"</name>
|
||||
<rename>c</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"D"</name>
|
||||
<rename>d</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"E"</name>
|
||||
<rename>e</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>nope</name>
|
||||
<rename>nope</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"A_repcent"</name>
|
||||
<rename>a_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"B_repcent"</name>
|
||||
<rename>b_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"C_repcent"</name>
|
||||
<rename>c_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"D_repcent"</name>
|
||||
<rename>d_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"E_repcent"</name>
|
||||
<rename>e_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>"all_M_W"</name>
|
||||
<rename>gender</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>nope_repcent</name>
|
||||
<rename>nope_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>total_count</name>
|
||||
<rename>total</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>Y</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1440</xloc>
|
||||
<yloc>544</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Select values 3 2</name>
|
||||
<type>SelectValues</type>
|
||||
|
|
@ -573,116 +272,8 @@
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1184</xloc>
|
||||
<yloc>224</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Select values 3 2 2</name>
|
||||
<type>SelectValues</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<select_unspecified>N</select_unspecified>
|
||||
<meta>
|
||||
<name>REC_ID</name>
|
||||
<rename>REC_ID</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
<meta>
|
||||
<name>SCM</name>
|
||||
<rename>SCM</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1184</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Select values 3 2 2 2</name>
|
||||
<type>SelectValues</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<select_unspecified>N</select_unspecified>
|
||||
<meta>
|
||||
<name>REC_ID</name>
|
||||
<rename>REC_ID</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
<meta>
|
||||
<name>SCM</name>
|
||||
<rename>SCM</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1184</xloc>
|
||||
<yloc>544</yloc>
|
||||
<xloc>1104</xloc>
|
||||
<yloc>496</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -699,10 +290,28 @@
|
|||
<connection>ervu_person_registry</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH categorized AS (
|
||||
<sql>WITH
|
||||
ids AS (
|
||||
SELECT unnest(string_to_array(trim(both '{}' from '${ARR_MC}'), ','))::uuid AS recruitment_id
|
||||
),
|
||||
gender_separations AS (
|
||||
SELECT 'MALE' AS gender
|
||||
UNION ALL
|
||||
SELECT 'FEMALE' AS gender
|
||||
),
|
||||
data_combinations AS (
|
||||
-- Создаём все комбинации target_recruitment_id и gender
|
||||
SELECT
|
||||
i.recruitment_id AS recruitment_id,
|
||||
gs.gender
|
||||
FROM ids i
|
||||
CROSS JOIN gender_separations gs
|
||||
),
|
||||
categorized AS (
|
||||
SELECT
|
||||
r.id,
|
||||
r.gender,
|
||||
r.target_recruitment_id::uuid AS recruitment_id,
|
||||
-- Проверяем наличие хотя бы одной категории, используем DISTINCT для уникальных рекрутов
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%A%' THEN 1 ELSE 0 END) AS has_A,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%B%' THEN 1 ELSE 0 END) AS has_B,
|
||||
|
|
@ -714,15 +323,38 @@
|
|||
LEFT JOIN jsonb_array_elements(ri.info->'svedVoditUdost'->'voditUdost'->'svedKat') AS cat ON true
|
||||
WHERE r.vu_current_info->>'isMilitaryRegistered' = 'true'
|
||||
AND r.current_recruitment_id IS NOT NULL
|
||||
AND r.target_recruitment_id = '${REC_ID}'
|
||||
AND r.target_recruitment_id::uuid IN (SELECT recruitment_id FROM ids)
|
||||
AND r.gender IN ('MALE', 'FEMALE') -- Исключаем NULL
|
||||
GROUP BY r.id, r.gender
|
||||
),
|
||||
aggregated AS (
|
||||
SELECT
|
||||
current_date AS recording_date,
|
||||
CASE
|
||||
WHEN dc.gender = 'MALE' THEN 'M'
|
||||
WHEN dc.gender = 'FEMALE' THEN 'W'
|
||||
ELSE NULL
|
||||
END AS gender,
|
||||
dc.recruitment_id,
|
||||
-- Считаем количество уникальных рекрутов с каждой категорией
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_B > 0) AS b,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_C > 0) AS c,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_D > 0) AS d,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_E > 0) AS e,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A = 0 AND has_B = 0 AND has_C = 0 AND has_D = 0 AND has_E = 0) AS nope,
|
||||
COUNT(DISTINCT r.id) AS total
|
||||
FROM data_combinations dc
|
||||
LEFT JOIN categorized r ON
|
||||
r.recruitment_id = dc.recruitment_id AND
|
||||
r.gender = dc.gender
|
||||
GROUP BY dc.gender, dc.recruitment_id
|
||||
),
|
||||
aggregated_all AS (
|
||||
SELECT
|
||||
current_date AS recording_date,
|
||||
'ALL' AS gender,
|
||||
'${REC_ID}' AS recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
-- Считаем количество уникальных рекрутов с каждой категорией
|
||||
dc.recruitment_id,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_B > 0) AS b,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_C > 0) AS c,
|
||||
|
|
@ -730,179 +362,38 @@ aggregated AS (
|
|||
COUNT(DISTINCT r.id) FILTER (WHERE has_E > 0) AS e,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A = 0 AND has_B = 0 AND has_C = 0 AND has_D = 0 AND has_E = 0) AS nope,
|
||||
COUNT(DISTINCT r.id) AS total
|
||||
FROM categorized r
|
||||
FROM data_combinations dc
|
||||
LEFT JOIN categorized r ON
|
||||
r.recruitment_id = dc.recruitment_id AND
|
||||
r.gender IN ('MALE', 'FEMALE') -- Комбинированная агрегация по обоим гендерам
|
||||
GROUP BY dc.recruitment_id
|
||||
)
|
||||
SELECT *,
|
||||
|
||||
-- Объединение результатов с вычислением процентов
|
||||
SELECT
|
||||
*,
|
||||
ROUND((a * 100.0) / NULLIF(total, 0), 2) AS a_percent,
|
||||
ROUND((b * 100.0) / NULLIF(total, 0), 2) AS b_percent,
|
||||
ROUND((c * 100.0) / NULLIF(total, 0), 2) AS c_percent,
|
||||
ROUND((d * 100.0) / NULLIF(total, 0), 2) AS d_percent,
|
||||
ROUND((e * 100.0) / NULLIF(total, 0), 2) AS e_percent,
|
||||
ROUND((nope * 100.0) / NULLIF(total, 0), 2) AS nope_percent
|
||||
FROM aggregated;</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>816</xloc>
|
||||
<yloc>224</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Table input (person_registry) регионы/женщины</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>ervu_person_registry</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH categorized AS (
|
||||
SELECT
|
||||
r.id,
|
||||
r.gender,
|
||||
-- Проверяем наличие хотя бы одной категории, используем DISTINCT для уникальных рекрутов
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%A%' THEN 1 ELSE 0 END) AS has_A,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%B%' THEN 1 ELSE 0 END) AS has_B,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%C%' THEN 1 ELSE 0 END) AS has_C,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%D%' THEN 1 ELSE 0 END) AS has_D,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%E%' THEN 1 ELSE 0 END) AS has_E
|
||||
FROM public.recruits_info ri
|
||||
JOIN public.recruits r ON ri.recruit_id = r.id
|
||||
LEFT JOIN jsonb_array_elements(ri.info->'svedVoditUdost'->'voditUdost'->'svedKat') AS cat ON true
|
||||
WHERE r.vu_current_info->>'isMilitaryRegistered' = 'true'
|
||||
AND r.current_recruitment_id IS NOT NULL
|
||||
AND r.target_recruitment_id = '${REC_ID}'
|
||||
AND r.gender = 'FEMALE'
|
||||
GROUP BY r.id, r.gender
|
||||
),
|
||||
aggregated AS (
|
||||
SELECT
|
||||
'W' AS gender,
|
||||
'${REC_ID}' as recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
-- Считаем количество уникальных рекрутов с каждой категорией
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_B > 0) AS b,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_C > 0) AS c,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_D > 0) AS d,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_E > 0) AS e,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A = 0 AND has_B = 0 AND has_C = 0 AND has_D = 0 AND has_E = 0) AS nope,
|
||||
COUNT(DISTINCT r.id) AS total
|
||||
FROM categorized r
|
||||
)
|
||||
SELECT *,
|
||||
FROM aggregated
|
||||
UNION ALL
|
||||
SELECT
|
||||
*,
|
||||
ROUND((a * 100.0) / NULLIF(total, 0), 2) AS a_percent,
|
||||
ROUND((b * 100.0) / NULLIF(total, 0), 2) AS b_percent,
|
||||
ROUND((c * 100.0) / NULLIF(total, 0), 2) AS c_percent,
|
||||
ROUND((d * 100.0) / NULLIF(total, 0), 2) AS d_percent,
|
||||
ROUND((e * 100.0) / NULLIF(total, 0), 2) AS e_percent,
|
||||
ROUND((nope * 100.0) / NULLIF(total, 0), 2) AS nope_percent
|
||||
FROM aggregated;</sql>
|
||||
FROM aggregated_all
|
||||
ORDER BY recruitment_id, gender;</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>800</xloc>
|
||||
<yloc>544</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Table input (person_registry) регионы/мужчины</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>ervu_person_registry</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH categorized AS (
|
||||
SELECT
|
||||
r.id,
|
||||
r.gender,
|
||||
-- Проверяем наличие хотя бы одной категории, используем DISTINCT для уникальных рекрутов
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%A%' THEN 1 ELSE 0 END) AS has_A,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%B%' THEN 1 ELSE 0 END) AS has_B,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%C%' THEN 1 ELSE 0 END) AS has_C,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%D%' THEN 1 ELSE 0 END) AS has_D,
|
||||
MAX(CASE WHEN cat->>'kategoriya' like '%E%' THEN 1 ELSE 0 END) AS has_E
|
||||
FROM public.recruits_info ri
|
||||
JOIN public.recruits r ON ri.recruit_id = r.id
|
||||
LEFT JOIN jsonb_array_elements(ri.info->'svedVoditUdost'->'voditUdost'->'svedKat') AS cat ON true
|
||||
WHERE r.vu_current_info->>'isMilitaryRegistered' = 'true'
|
||||
AND r.current_recruitment_id IS NOT NULL
|
||||
AND r.target_recruitment_id = '${REC_ID}'
|
||||
AND r.gender = 'MALE'
|
||||
GROUP BY r.id, r.gender
|
||||
),
|
||||
aggregated AS (
|
||||
SELECT
|
||||
'M' AS gender,
|
||||
'${REC_ID}' as recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
-- Считаем количество уникальных рекрутов с каждой категорией
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_B > 0) AS b,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_C > 0) AS c,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_D > 0) AS d,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_E > 0) AS e,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A = 0 AND has_B = 0 AND has_C = 0 AND has_D = 0 AND has_E = 0) AS nope,
|
||||
COUNT(DISTINCT r.id) AS total
|
||||
FROM categorized r
|
||||
)
|
||||
SELECT *,
|
||||
ROUND((a * 100.0) / NULLIF(total, 0), 2) AS a_percent,
|
||||
ROUND((b * 100.0) / NULLIF(total, 0), 2) AS b_percent,
|
||||
ROUND((c * 100.0) / NULLIF(total, 0), 2) AS c_percent,
|
||||
ROUND((d * 100.0) / NULLIF(total, 0), 2) AS d_percent,
|
||||
ROUND((e * 100.0) / NULLIF(total, 0), 2) AS e_percent,
|
||||
ROUND((nope * 100.0) / NULLIF(total, 0), 2) AS nope_percent
|
||||
FROM aggregated;</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>800</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<delete_field/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<insert_field/>
|
||||
<quoteString>N</quoteString>
|
||||
<read_field/>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.driver_license
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
<update_field/>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>512</xloc>
|
||||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
|
|
|
|||
|
|
@ -24,23 +24,28 @@
|
|||
<hop>
|
||||
<from>Get variables 3</from>
|
||||
<to>Select values 3</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (person_registry) военком/рег</from>
|
||||
<to>Get variables 3</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 3</from>
|
||||
<to>Insert / update (total_registered.reg_mil_cat)</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (person_registry) военком/рег</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (person_registry) военком/рег</from>
|
||||
<to>Insert / update (total_registered.reg_mil_cat)</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
|
|
@ -64,7 +69,7 @@
|
|||
<sql>DELETE FROM total_registered.reg_mil_cat
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
</sql>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>464</xloc>
|
||||
|
|
@ -100,8 +105,8 @@ WHERE recording_date = current_date
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>992</xloc>
|
||||
<yloc>288</yloc>
|
||||
<xloc>1008</xloc>
|
||||
<yloc>464</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -121,12 +126,17 @@ WHERE recording_date = current_date
|
|||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>mil_reg</field>
|
||||
<name>mil_reg</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>reg_mil_cat</table>
|
||||
|
|
@ -200,11 +210,6 @@ WHERE recording_date = current_date
|
|||
<rename>mil_reg</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
|
|
@ -263,8 +268,8 @@ WHERE recording_date = current_date
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1136</xloc>
|
||||
<yloc>288</yloc>
|
||||
<xloc>1152</xloc>
|
||||
<yloc>464</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -281,33 +286,52 @@ WHERE recording_date = current_date
|
|||
<connection>postgres.person_registry</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH base_data AS (
|
||||
<sql>WITH
|
||||
ids AS (
|
||||
SELECT unnest(string_to_array(trim(both '{}' from '${ARR_MC}'), ','))::uuid AS recruitment_id
|
||||
),
|
||||
military_statuses AS (
|
||||
SELECT generate_series(0, 1) AS is_military_registered
|
||||
),
|
||||
base_data AS (
|
||||
-- Основной набор данных с вычислением mil_reg
|
||||
SELECT
|
||||
r.registration_reasons,
|
||||
r.gender,
|
||||
CASE
|
||||
WHEN r.vu_current_info ->> 'isMilitaryRegistered' = 'true' THEN 1
|
||||
ELSE 0
|
||||
END AS is_military_registered
|
||||
r.target_recruitment_id,
|
||||
(CASE
|
||||
WHEN r.vu_current_info ->> 'isMilitaryRegistered' = 'true' THEN 1
|
||||
WHEN r.vu_current_info ->> 'isMilitaryRegistered' = 'false' THEN 0
|
||||
ELSE null
|
||||
END)::numeric AS is_military_registered
|
||||
FROM public.recruits r
|
||||
WHERE (r.vu_current_info ->> 'isMilitaryRegistered' = 'true'
|
||||
OR r.vu_current_info ->> 'isMilitaryRegistered' = 'false')
|
||||
AND r.current_recruitment_id IS NOT NULL
|
||||
AND r.target_recruitment_id = '${REC_ID}'
|
||||
AND r.target_recruitment_id::uuid IN (SELECT recruitment_id FROM ids)
|
||||
),
|
||||
data_combinations AS (
|
||||
-- Создаём все комбинации target_recruitment_id и is_military_registered
|
||||
SELECT
|
||||
i.recruitment_id AS target_recruitment_id,
|
||||
m.is_military_registered
|
||||
FROM ids i
|
||||
CROSS JOIN military_statuses m
|
||||
),
|
||||
t1 AS (
|
||||
-- Первоначальная постановка 17 лет, с учетом mil_reg
|
||||
-- Первоначальная постановка 17 лет
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS first_reg_17
|
||||
FROM base_data
|
||||
WHERE registration_reasons @> '"5"'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
t2 AS (
|
||||
-- Первоначальная постановка 18 лет, с учетом mil_reg
|
||||
-- Первоначальная постановка 18 лет
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS first_reg_18
|
||||
FROM base_data
|
||||
|
|
@ -316,54 +340,62 @@ t2 AS (
|
|||
OR registration_reasons @> '"1"'
|
||||
OR registration_reasons @> '"4"'
|
||||
OR registration_reasons @> '"2"'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
t3 AS (
|
||||
-- Женщины, получившие ВУС, с учетом mil_reg
|
||||
-- Женщины, получившие ВУС
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS mil_spec_w
|
||||
FROM base_data
|
||||
WHERE registration_reasons @> '"3"' AND gender = 'FEMALE'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
t4 AS (
|
||||
-- Возвратившиеся из мест лишения свободы, с учетом mil_reg
|
||||
-- Возвратившиеся из мест лишения свободы
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS returned_dep_liberty
|
||||
FROM base_data
|
||||
WHERE registration_reasons @> '"1"'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
t5 AS (
|
||||
-- Отбывающие наказание в местах лишения свободы, с учетом mil_reg
|
||||
-- Отбывающие наказание в местах лишения свободы
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS punished
|
||||
FROM base_data
|
||||
WHERE registration_reasons @> '"4"'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
t6 AS (
|
||||
-- Получившие гражданство, с учетом mil_reg
|
||||
-- Получившие гражданство
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS received_citizenship
|
||||
FROM base_data
|
||||
WHERE registration_reasons @> '"2"'
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
),
|
||||
total AS (
|
||||
-- Общее количество записей с учетом mil_reg
|
||||
-- Общее количество записей
|
||||
SELECT
|
||||
target_recruitment_id,
|
||||
is_military_registered,
|
||||
COUNT(*) AS total_count
|
||||
FROM base_data
|
||||
GROUP BY is_military_registered
|
||||
GROUP BY target_recruitment_id, is_military_registered
|
||||
)
|
||||
-- Основной запрос
|
||||
SELECT
|
||||
current_date AS recording_date,
|
||||
dc.target_recruitment_id AS recruitment_id,
|
||||
dc.is_military_registered AS mil_reg,
|
||||
COALESCE(total.total_count, 0) AS total_count,
|
||||
COALESCE(t1.first_reg_17, 0) AS first_reg_17,
|
||||
COALESCE(t2.first_reg_18, 0) AS first_reg_18,
|
||||
|
|
@ -377,19 +409,23 @@ SELECT
|
|||
ROUND(COALESCE(t4.returned_dep_liberty, 0) * 100.0 / NULLIF(total.total_count, 0), 2) AS returned_dep_liberty_percent,
|
||||
ROUND(COALESCE(t3.mil_spec_w, 0) * 100.0 / NULLIF(total.total_count, 0), 2) AS mil_spec_w_percent,
|
||||
ROUND(COALESCE(t5.punished, 0) * 100.0 / NULLIF(total.total_count, 0), 2) AS punished_percent,
|
||||
ROUND(COALESCE(t6.received_citizenship, 0) * 100.0 / NULLIF(total.total_count, 0), 2) AS received_citizenship_percent,
|
||||
'${SCM}' AS schema,
|
||||
'${REC_ID}' AS recruitment_id,
|
||||
total.is_military_registered AS mil_reg,
|
||||
1 AS org
|
||||
FROM total
|
||||
LEFT JOIN t1 ON total.is_military_registered = t1.is_military_registered
|
||||
LEFT JOIN t2 ON total.is_military_registered = t2.is_military_registered
|
||||
LEFT JOIN t3 ON total.is_military_registered = t3.is_military_registered
|
||||
LEFT JOIN t4 ON total.is_military_registered = t4.is_military_registered
|
||||
LEFT JOIN t5 ON total.is_military_registered = t5.is_military_registered
|
||||
LEFT JOIN t6 ON total.is_military_registered = t6.is_military_registered
|
||||
ORDER BY mil_reg;</sql>
|
||||
ROUND(COALESCE(t6.received_citizenship, 0) * 100.0 / NULLIF(total.total_count, 0), 2) AS received_citizenship_percent
|
||||
FROM data_combinations dc
|
||||
LEFT JOIN total ON dc.target_recruitment_id = total.target_recruitment_id
|
||||
AND dc.is_military_registered = total.is_military_registered
|
||||
LEFT JOIN t1 ON dc.target_recruitment_id = t1.target_recruitment_id
|
||||
AND dc.is_military_registered = t1.is_military_registered
|
||||
LEFT JOIN t2 ON dc.target_recruitment_id = t2.target_recruitment_id
|
||||
AND dc.is_military_registered = t2.is_military_registered
|
||||
LEFT JOIN t3 ON dc.target_recruitment_id = t3.target_recruitment_id
|
||||
AND dc.is_military_registered = t3.is_military_registered
|
||||
LEFT JOIN t4 ON dc.target_recruitment_id = t4.target_recruitment_id
|
||||
AND dc.is_military_registered = t4.is_military_registered
|
||||
LEFT JOIN t5 ON dc.target_recruitment_id = t5.target_recruitment_id
|
||||
AND dc.is_military_registered = t5.is_military_registered
|
||||
LEFT JOIN t6 ON dc.target_recruitment_id = t6.target_recruitment_id
|
||||
AND dc.is_military_registered = t6.is_military_registered
|
||||
ORDER BY dc.target_recruitment_id, dc.is_military_registered;</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
|
|
|
|||
|
|
@ -24,24 +24,57 @@
|
|||
<hop>
|
||||
<from>Get variables 2 2</from>
|
||||
<to>Select values 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 2 2</from>
|
||||
<to>Insert / update (total_registered.removed_registry) 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (decision-document-service) регион 2</from>
|
||||
<to>Get variables 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
<enabled>N</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (decision-document-service) регион 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (decision-document-service) регион 2</from>
|
||||
<to>Insert / update (total_registered.removed_registry) 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<quoteString>N</quoteString>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.removed_registry
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')</sql>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>512</xloc>
|
||||
<yloc>320</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
|
|
@ -71,8 +104,8 @@
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1040</xloc>
|
||||
<yloc>320</yloc>
|
||||
<xloc>992</xloc>
|
||||
<yloc>464</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -92,12 +125,12 @@
|
|||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>removed_registry</table>
|
||||
|
|
@ -171,11 +204,6 @@
|
|||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
|
|
@ -234,8 +262,8 @@
|
|||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1168</xloc>
|
||||
<yloc>320</yloc>
|
||||
<xloc>1120</xloc>
|
||||
<yloc>464</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
|
|
@ -253,8 +281,12 @@
|
|||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH
|
||||
ids AS (
|
||||
SELECT unnest(string_to_array(trim(both '{}' from '${ARR_MC}'), ','))::uuid AS recruitment_id
|
||||
),
|
||||
total_info AS (
|
||||
SELECT
|
||||
r.target_recruitment AS recruitment_id,
|
||||
COUNT(*) AS removed_registry,
|
||||
COUNT(CASE WHEN d.extra_info ->> 'cause' = 'ageLimit' THEN 1 END) AS age_limit, -- Количество по причине предельный возраст
|
||||
COUNT(CASE WHEN d.extra_info ->> 'cause' = 'notAlive' THEN 1 END) AS death, -- Количество по причине смерть
|
||||
|
|
@ -264,17 +296,19 @@ ROUND(COUNT(CASE WHEN d.extra_info ->> 'cause' = 'notAlive' THEN 1 END) * 100.0
|
|||
ROUND(COUNT(CASE WHEN (d.extra_info ->> 'cause' IS NULL OR d.extra_info ->> 'cause' NOT IN ('ageLimit', 'notAlive')) THEN 1 END) * 100.0 / NULLIF(COUNT(*), 0), 2) AS other_percent
|
||||
FROM public.recruit AS r
|
||||
JOIN public.decision AS d
|
||||
ON d.recruit_id = r.id
|
||||
ON d.recruit_id = r.id
|
||||
JOIN public.decision_type AS dt
|
||||
ON dt.id = d.type_id
|
||||
ON dt.id = d.type_id
|
||||
WHERE r.system_pgs_status = '1.3'
|
||||
AND r.current_recruitment IS NOT NULL
|
||||
AND dt.code in ('9','10')
|
||||
AND r.target_recruitment = '${REC_ID}'
|
||||
AND r.target_recruitment::uuid IN (SELECT recruitment_id FROM ids)
|
||||
GROUP BY r.target_recruitment
|
||||
)
|
||||
SELECT
|
||||
'${REC_ID}' AS recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
current_date AS recording_date,
|
||||
ids.recruitment_id AS recruitment_id,
|
||||
-- '${SCM}' AS schema,
|
||||
COALESCE(total_info.removed_registry, 0) AS removed_registry,
|
||||
COALESCE(total_info.age_limit, 0) AS age_limit,
|
||||
COALESCE(total_info.death, 0) AS death,
|
||||
|
|
@ -288,7 +322,9 @@ COALESCE(total_info.other_percent, 0) AS other_percent,
|
|||
'0' AS deprivation_citizen_percents,
|
||||
'0' AS travel_abroad_percent,
|
||||
'0' AS living_abroad_percent
|
||||
FROM total_info</sql>
|
||||
FROM ids
|
||||
LEFT JOIN total_info
|
||||
ON total_info.recruitment_id = ids.recruitment_id</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
|
|
@ -296,39 +332,6 @@ FROM total_info</sql>
|
|||
<yloc>320</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
<type>ExecSql</type>
|
||||
<description/>
|
||||
<distribute>N</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<arguments>
|
||||
</arguments>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<delete_field/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<insert_field/>
|
||||
<quoteString>N</quoteString>
|
||||
<read_field/>
|
||||
<replace_variables>Y</replace_variables>
|
||||
<set_params>N</set_params>
|
||||
<single_statement>N</single_statement>
|
||||
<sql>DELETE FROM total_registered.removed_registry
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
<update_field/>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>512</xloc>
|
||||
<yloc>320</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform_error_handling>
|
||||
</transform_error_handling>
|
||||
<attributes/>
|
||||
|
|
|
|||
|
|
@ -31,36 +31,16 @@
|
|||
<to>Get variables 4 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Get variables 4 2 2</from>
|
||||
<to>Select values 4 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Table input (subpoena) регион/не рег</from>
|
||||
<to>Get variables 4 2 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 4 2</from>
|
||||
<to>Insert / update (total_registered.subpoenas) 3</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Select values 4 2 2</from>
|
||||
<to>Insert / update (total_registered.subpoenas) 3 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (subpoena) регион/рег</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Execute SQL script</from>
|
||||
<to>Table input (subpoena) регион/не рег</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<transform>
|
||||
<name>Execute SQL script</name>
|
||||
|
|
@ -84,7 +64,7 @@
|
|||
<sql>DELETE FROM total_registered.subpoenas
|
||||
WHERE recording_date = current_date
|
||||
AND schema IN ('Department', 'MD_LVL', 'REG_LVL')
|
||||
AND recruitment_id = '${REC_ID}'</sql>
|
||||
</sql>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>592</xloc>
|
||||
|
|
@ -124,39 +104,6 @@ WHERE recording_date = current_date
|
|||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Get variables 4 2 2</name>
|
||||
<type>GetVariable</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>REC_ID</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
<field>
|
||||
<length>-1</length>
|
||||
<name>SCM</name>
|
||||
<precision>-1</precision>
|
||||
<trim_type>none</trim_type>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1024</xloc>
|
||||
<yloc>512</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.subpoenas) 3</name>
|
||||
<type>InsertUpdate</type>
|
||||
|
|
@ -174,12 +121,17 @@ WHERE recording_date = current_date
|
|||
<key>
|
||||
<condition>=</condition>
|
||||
<field>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
<name>recruitment_id</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
<field>recording_date</field>
|
||||
<name>recording_date</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>mil_reg</field>
|
||||
<name>mil_reg</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>subpoenas</table>
|
||||
|
|
@ -303,11 +255,6 @@ WHERE recording_date = current_date
|
|||
<rename>appear_date_is_good_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
|
|
@ -316,165 +263,6 @@ WHERE recording_date = current_date
|
|||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Insert / update (total_registered.subpoenas) 3 2</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>recruitment_id</field>
|
||||
<name>REC_ID</name>
|
||||
</key>
|
||||
<key>
|
||||
<condition>=</condition>
|
||||
<field>schema</field>
|
||||
<name>SCM</name>
|
||||
</key>
|
||||
<schema>total_registered</schema>
|
||||
<table>subpoenas</table>
|
||||
<value>
|
||||
<name>subpoena</name>
|
||||
<rename>count_subpoena</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>appeared</name>
|
||||
<rename>count_appeared</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>average_appeared</name>
|
||||
<rename>average_appeared</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>not_appeared</name>
|
||||
<rename>count_not_appeared</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>not_ap_good_reason</name>
|
||||
<rename>count_not_ap_good_reason</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>introduced_measures</name>
|
||||
<rename>count_introduced_measures</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>ap_not_required</name>
|
||||
<rename>count_ap_not_required</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>electron</name>
|
||||
<rename>count_electron</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>paper</name>
|
||||
<rename>count_paper</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>restrictions_applied</name>
|
||||
<rename>count_restrictions_applied</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>recruitment_id</name>
|
||||
<rename>recruitment_id</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>mil_reg</name>
|
||||
<rename>mil_reg</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>appeared_percent</name>
|
||||
<rename>appeared_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>not_appeared_percent</name>
|
||||
<rename>not_appeared_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>not_ap_good_reason_percent</name>
|
||||
<rename>not_ap_good_reason_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>ap_not_required_percent</name>
|
||||
<rename>ap_not_required_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>electron_percent</name>
|
||||
<rename>electron_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>paper_percent</name>
|
||||
<rename>paper_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>restrictions_applied_percent</name>
|
||||
<rename>restrictions_applied_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>introduced_measures_percent</name>
|
||||
<rename>introduced_measures_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>count_not_delivery</name>
|
||||
<rename>count_not_delivery</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>appear_date_is_good</name>
|
||||
<rename>appear_date_is_good</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>not_delivery_percent</name>
|
||||
<rename>not_delivery_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>appear_date_is_good_percent</name>
|
||||
<rename>appear_date_is_good_percent</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>schema</name>
|
||||
<rename>schema</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1472</xloc>
|
||||
<yloc>512</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Select values 4 2</name>
|
||||
<type>SelectValues</type>
|
||||
|
|
@ -529,216 +317,6 @@ WHERE recording_date = current_date
|
|||
<yloc>384</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Select values 4 2 2</name>
|
||||
<type>SelectValues</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<select_unspecified>N</select_unspecified>
|
||||
<meta>
|
||||
<name>REC_ID</name>
|
||||
<rename>REC_ID</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
<meta>
|
||||
<name>SCM</name>
|
||||
<rename>SCM</rename>
|
||||
<type>String</type>
|
||||
<length>-2</length>
|
||||
<precision>-2</precision>
|
||||
<conversion_mask/>
|
||||
<date_format_lenient>false</date_format_lenient>
|
||||
<date_format_locale/>
|
||||
<date_format_timezone/>
|
||||
<lenient_string_to_number>false</lenient_string_to_number>
|
||||
<encoding/>
|
||||
<decimal_symbol/>
|
||||
<grouping_symbol/>
|
||||
<currency_symbol/>
|
||||
<storage_type/>
|
||||
</meta>
|
||||
</fields>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1200</xloc>
|
||||
<yloc>512</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Table input (subpoena) регион/не рег</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>postgres.subpoena</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH subpoena_data AS (
|
||||
SELECT
|
||||
s.id AS subpoena_id,
|
||||
s.status_id,
|
||||
sr.type,
|
||||
ssh.code AS sub_stat_hist,
|
||||
s.send_date,
|
||||
sh.date_time::timestamp AS history_date,
|
||||
rdi.restriction_document_cancel_id AS restr_dc,
|
||||
rdi.applied_date AS ap_date,
|
||||
rdi.id AS rdi_id,
|
||||
ssi.delivery_code AS d_code,
|
||||
ROW_NUMBER() OVER (PARTITION BY s.id ORDER BY sh.date_time DESC) AS rn
|
||||
FROM subpoena s
|
||||
JOIN subpoena_history AS sh ON sh.subpoena_id = s.id
|
||||
JOIN subpoena_status AS ss ON ss.id = s.status_id
|
||||
JOIN subpoena_status AS ssh ON ssh.id = sh.status_id
|
||||
JOIN subpoena_reason AS sr ON sr.id = s.reason_id
|
||||
LEFT JOIN restriction_document AS rd ON rd.subpoena_id = s.id
|
||||
LEFT JOIN restriction_document_item AS rdi ON rdi.restriction_document_create_id = rd.id
|
||||
LEFT JOIN subpoena_send_info AS ssi ON ssi.subpoena_id = s.id
|
||||
WHERE sr.type = '1'
|
||||
AND ssh.code NOT IN ('3.14','3.7','3.72', '3.71')
|
||||
AND s.department_id = '${REC_ID}'
|
||||
),
|
||||
last_status AS (
|
||||
SELECT *
|
||||
FROM subpoena_data
|
||||
WHERE rn = 1
|
||||
),
|
||||
t1 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_subpoena
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist IS NOT NULL
|
||||
),
|
||||
t2 AS (
|
||||
SELECT ROUND(AVG(EXTRACT(DAY FROM (history_date::timestamp - send_date::timestamp))), 1) AS average_appeared
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist IN ('4.1', '4.2', '4')
|
||||
),
|
||||
t3 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_appeared
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist IN ('4.1', '4.2', '4')
|
||||
),
|
||||
t4 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_appeared
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist = '5'
|
||||
),
|
||||
t5 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_ap_good_reason
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist = '5.1'
|
||||
),
|
||||
t6 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_ap_not_required
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist IN ('3.8', '5.2')
|
||||
),
|
||||
t7 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_restrictions_applied
|
||||
FROM last_status
|
||||
WHERE restr_dc IS NULL
|
||||
),
|
||||
t8 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_introduced_measures
|
||||
FROM last_status
|
||||
WHERE restr_dc IS NULL AND ap_date IS NOT NULL
|
||||
),
|
||||
t9 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_paper
|
||||
FROM last_status
|
||||
WHERE d_code != '7'
|
||||
),
|
||||
t10 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_electron
|
||||
FROM last_status
|
||||
WHERE d_code = '7'
|
||||
),
|
||||
t11 AS (
|
||||
SELECT COUNT (DISTINCT rdi_id) AS count_restrictions
|
||||
FROM last_status
|
||||
),
|
||||
t12 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_delivery
|
||||
FROM last_status
|
||||
WHERE d_code IS NULL
|
||||
),
|
||||
t13 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS appear_date_is_good
|
||||
FROM last_status
|
||||
WHERE sub_stat_hist IN ('3','3.12', '3.13', '3.15', '3.1')
|
||||
)
|
||||
SELECT
|
||||
COALESCE(t1.count_subpoena, 0) AS count_subpoena,
|
||||
COALESCE(t2.average_appeared, 0) AS average_appeared,
|
||||
COALESCE(t3.count_appeared, 0) AS count_appeared,
|
||||
COALESCE(t4.count_not_appeared, 0) AS count_not_appeared,
|
||||
COALESCE(t5.count_not_ap_good_reason, 0) AS count_not_ap_good_reason,
|
||||
COALESCE(t6.count_ap_not_required, 0) AS count_ap_not_required,
|
||||
COALESCE(t7.count_restrictions_applied, 0) AS count_restrictions_applied,
|
||||
COALESCE(t8.count_introduced_measures, 0) AS count_introduced_measures,
|
||||
COALESCE(t9.count_paper, 0) AS count_paper,
|
||||
COALESCE(t10.count_electron, 0) AS count_electron,
|
||||
COALESCE(t11.count_restrictions, 0) AS count_restrictions,
|
||||
COALESCE(t12.count_not_delivery, 0) AS count_not_delivery,
|
||||
COALESCE(t13.appear_date_is_good, 0) AS appear_date_is_good,
|
||||
ROUND(COALESCE(t3.count_appeared, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS appeared_percent,
|
||||
ROUND(COALESCE(t4.count_not_appeared, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS not_appeared_percent,
|
||||
ROUND(COALESCE(t5.count_not_ap_good_reason, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS not_ap_good_reason_percent,
|
||||
ROUND(COALESCE(t6.count_ap_not_required, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS ap_not_required_percent,
|
||||
ROUND(COALESCE(t10.count_electron, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS electron_percent,
|
||||
ROUND(COALESCE(t9.count_paper, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS paper_percent,
|
||||
ROUND(COALESCE(t7.count_restrictions_applied, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS restrictions_applied_percent,
|
||||
ROUND(COALESCE(t8.count_introduced_measures, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS introduced_measures_percent,
|
||||
ROUND(COALESCE(t12.count_not_delivery, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS not_delivery_percent,
|
||||
ROUND(COALESCE(t13.appear_date_is_good, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS appear_date_is_good_percent,
|
||||
'${REC_ID}' AS recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
1 AS org,
|
||||
0 AS mil_reg
|
||||
FROM t1
|
||||
FULL OUTER JOIN t2 ON true
|
||||
FULL OUTER JOIN t3 ON true
|
||||
FULL OUTER JOIN t4 ON true
|
||||
FULL OUTER JOIN t5 ON true
|
||||
FULL OUTER JOIN t6 ON true
|
||||
FULL OUTER JOIN t7 ON true
|
||||
FULL OUTER JOIN t8 ON true
|
||||
FULL OUTER JOIN t9 ON true
|
||||
FULL OUTER JOIN t10 ON true
|
||||
FULL OUTER JOIN t11 ON true
|
||||
FULL OUTER JOIN t12 ON true
|
||||
FULL OUTER JOIN t13 ON true</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>816</xloc>
|
||||
<yloc>512</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Table input (subpoena) регион/рег</name>
|
||||
<type>TableInput</type>
|
||||
|
|
@ -753,11 +331,23 @@ FULL OUTER JOIN t13 ON true</sql>
|
|||
<connection>postgres.subpoena</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>WITH subpoena_data AS (
|
||||
<sql>WITH
|
||||
ids AS (
|
||||
SELECT unnest(string_to_array(trim(both '{}' from '${ARR_MC}'), ','))::uuid AS recruitment_id
|
||||
),
|
||||
military_statuses AS (
|
||||
SELECT generate_series(0, 1) AS is_military_registered
|
||||
),
|
||||
subpoena_data AS (
|
||||
SELECT
|
||||
s.id AS subpoena_id,
|
||||
s.department_id::uuid,
|
||||
s.status_id,
|
||||
sr.type,
|
||||
(CASE
|
||||
WHEN sr.type = '1' THEN 0
|
||||
WHEN sr.type != '1' THEN 1
|
||||
ELSE NULL
|
||||
END)::numeric AS mil_reg,
|
||||
ssh.code AS sub_stat_hist,
|
||||
s.send_date,
|
||||
sh.date_time::timestamp AS history_date,
|
||||
|
|
@ -774,9 +364,17 @@ FULL OUTER JOIN t13 ON true</sql>
|
|||
LEFT JOIN restriction_document AS rd ON rd.subpoena_id = s.id
|
||||
LEFT JOIN restriction_document_item AS rdi ON rdi.restriction_document_create_id = rd.id
|
||||
LEFT JOIN subpoena_send_info AS ssi ON ssi.subpoena_id = s.id
|
||||
WHERE sr.type != '1'
|
||||
WHERE sr.type IS NOT NULL
|
||||
AND ssh.code NOT IN ('3.14','3.7','3.72', '3.71')
|
||||
AND s.department_id = '${REC_ID}'
|
||||
AND s.department_id::uuid IN (SELECT recruitment_id FROM ids)
|
||||
),
|
||||
data_combinations AS (
|
||||
-- Создаём все комбинации target_recruitment_id и is_military_registered
|
||||
SELECT
|
||||
i.recruitment_id AS department_id,
|
||||
m.is_military_registered
|
||||
FROM ids i
|
||||
CROSS JOIN military_statuses m
|
||||
),
|
||||
last_status AS (
|
||||
SELECT *
|
||||
|
|
@ -784,68 +382,120 @@ last_status AS (
|
|||
WHERE rn = 1
|
||||
),
|
||||
t1 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_subpoena
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_subpoena
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist IS NOT NULL
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t2 AS (
|
||||
SELECT ROUND(AVG(EXTRACT(DAY FROM (history_date::timestamp - send_date::timestamp))), 1) AS average_appeared
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
ROUND(AVG(EXTRACT(DAY FROM (history_date::timestamp - send_date::timestamp))), 1) AS average_appeared
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist IN ('4.1', '4.2', '4')
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t3 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_appeared
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_appeared
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist IN ('4.1', '4.2', '4')
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t4 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_appeared
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_not_appeared
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist = '5'
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t5 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_ap_good_reason
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_not_ap_good_reason
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist = '5.1'
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t6 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_ap_not_required
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_ap_not_required
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist IN ('3.8', '5.2')
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t7 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_restrictions_applied
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_restrictions_applied
|
||||
FROM last_status ls
|
||||
WHERE restr_dc IS NULL
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t8 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_introduced_measures
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_introduced_measures
|
||||
FROM last_status ls
|
||||
WHERE restr_dc IS NULL AND ap_date IS NOT NULL
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t9 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_paper
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_paper
|
||||
FROM last_status ls
|
||||
WHERE d_code != '7'
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t10 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_electron
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_electron
|
||||
FROM last_status ls
|
||||
WHERE d_code = '7'
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t11 AS (
|
||||
SELECT COUNT (DISTINCT rdi_id) AS count_restrictions
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT (DISTINCT rdi_id) AS count_restrictions
|
||||
FROM last_status ls
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t12 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS count_not_delivery
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS count_not_delivery
|
||||
FROM last_status ls
|
||||
WHERE d_code IS NULL
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
),
|
||||
t13 AS (
|
||||
SELECT COUNT(DISTINCT subpoena_id) AS appear_date_is_good
|
||||
FROM last_status
|
||||
SELECT
|
||||
ls.mil_reg,
|
||||
ls.department_id,
|
||||
COUNT(DISTINCT subpoena_id) AS appear_date_is_good
|
||||
FROM last_status ls
|
||||
WHERE sub_stat_hist IN ('3','3.12', '3.13', '3.15', '3.1')
|
||||
GROUP BY ls.department_id, ls.mil_reg
|
||||
)
|
||||
SELECT
|
||||
COALESCE(t1.count_subpoena, 0) AS count_subpoena,
|
||||
|
|
@ -871,23 +521,36 @@ SELECT
|
|||
ROUND(COALESCE(t8.count_introduced_measures, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS introduced_measures_percent,
|
||||
ROUND(COALESCE(t12.count_not_delivery, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS not_delivery_percent,
|
||||
ROUND(COALESCE(t13.appear_date_is_good, 0) * 100.0 / NULLIF(t1.count_subpoena, 0), 2) AS appear_date_is_good_percent,
|
||||
'${REC_ID}' AS recruitment_id,
|
||||
'${SCM}' AS schema,
|
||||
1 AS org,
|
||||
1 AS mil_reg
|
||||
FROM t1
|
||||
FULL OUTER JOIN t2 ON true
|
||||
FULL OUTER JOIN t3 ON true
|
||||
FULL OUTER JOIN t4 ON true
|
||||
FULL OUTER JOIN t5 ON true
|
||||
FULL OUTER JOIN t6 ON true
|
||||
FULL OUTER JOIN t7 ON true
|
||||
FULL OUTER JOIN t8 ON true
|
||||
FULL OUTER JOIN t9 ON true
|
||||
FULL OUTER JOIN t10 ON true
|
||||
FULL OUTER JOIN t11 ON true
|
||||
FULL OUTER JOIN t12 ON true
|
||||
FULL OUTER JOIN t13 ON true</sql>
|
||||
dc.department_id AS recruitment_id,
|
||||
current_date AS recording_date,
|
||||
dc.is_military_registered AS mil_reg
|
||||
FROM data_combinations dc
|
||||
LEFT JOIN t1 ON dc.department_id = t1.department_id
|
||||
AND dc.is_military_registered = t1.mil_reg
|
||||
LEFT JOIN t2 ON dc.department_id = t2.department_id
|
||||
AND dc.is_military_registered = t2.mil_reg
|
||||
LEFT JOIN t3 ON dc.department_id = t3.department_id
|
||||
AND dc.is_military_registered = t3.mil_reg
|
||||
LEFT JOIN t4 ON dc.department_id = t4.department_id
|
||||
AND dc.is_military_registered = t4.mil_reg
|
||||
LEFT JOIN t5 ON dc.department_id = t5.department_id
|
||||
AND dc.is_military_registered = t5.mil_reg
|
||||
LEFT JOIN t6 ON dc.department_id = t6.department_id
|
||||
AND dc.is_military_registered = t6.mil_reg
|
||||
LEFT JOIN t7 ON dc.department_id = t7.department_id
|
||||
AND dc.is_military_registered = t7.mil_reg
|
||||
LEFT JOIN t8 ON dc.department_id = t8.department_id
|
||||
AND dc.is_military_registered = t8.mil_reg
|
||||
LEFT JOIN t9 ON dc.department_id = t9.department_id
|
||||
AND dc.is_military_registered = t9.mil_reg
|
||||
LEFT JOIN t10 ON dc.department_id = t10.department_id
|
||||
AND dc.is_military_registered = t10.mil_reg
|
||||
LEFT JOIN t11 ON dc.department_id = t11.department_id
|
||||
AND dc.is_military_registered = t11.mil_reg
|
||||
LEFT JOIN t12 ON dc.department_id = t12.department_id
|
||||
AND dc.is_military_registered = t12.mil_reg
|
||||
LEFT JOIN t13 ON dc.department_id = t13.department_id
|
||||
AND dc.is_military_registered = t13.mil_reg</sql>
|
||||
<variables_active>Y</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue