From db32fe6b2a7f78c85e8f5b1637c96b8cf24a40e6 Mon Sep 17 00:00:00 2001 From: ilyin Date: Fri, 27 Sep 2024 15:06:05 +0300 Subject: [PATCH] config_changes --- .../config-examples/block.xml | 40 ++-- .../config-examples/removeFromCallList.xml | 56 +---- .../config-examples/removeFromSystem.xml | 222 +++--------------- .../config-examples/unblock.xml | 8 +- 4 files changed, 68 insertions(+), 258 deletions(-) diff --git a/config-data-executor/config-examples/block.xml b/config-data-executor/config-examples/block.xml index 6518063..e5f4c02 100644 --- a/config-data-executor/config-examples/block.xml +++ b/config-data-executor/config-examples/block.xml @@ -22,14 +22,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + summon-list-registry @@ -61,14 +61,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + subpoena @@ -87,14 +87,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + incidents @@ -110,14 +110,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + geps_notifications @@ -149,14 +149,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + journal_dev diff --git a/config-data-executor/config-examples/removeFromCallList.xml b/config-data-executor/config-examples/removeFromCallList.xml index dcf73f2..673af80 100644 --- a/config-data-executor/config-examples/removeFromCallList.xml +++ b/config-data-executor/config-examples/removeFromCallList.xml @@ -1,48 +1,18 @@ - DELETE FROM summoned_list where recruit_id in ${endpointArguments} ${extraConditions} - - 10.10.31.118 - 5432 - ervu - ervu - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - summon-list-registry - - - - - DELETE FROM documents where recruit_id in ${endpointArguments} ${extraConditions} - - 10.10.31.118 - 5432 - ervu - ervu - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - summon-list-registry - - - - - DELETE FROM subpoena where recruit_id in ${endpointArguments} ${extraConditions} - - 10.10.31.118 - 5432 - ervu - ervu - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - summon-list-registry - - - - - DELETE FROM recruit_active_list where recruit_id in ${endpointArguments} ${extraConditions} + + + 10.10.31.118 5432 diff --git a/config-data-executor/config-examples/removeFromSystem.xml b/config-data-executor/config-examples/removeFromSystem.xml index f185111..7137082 100644 --- a/config-data-executor/config-examples/removeFromSystem.xml +++ b/config-data-executor/config-examples/removeFromSystem.xml @@ -28,40 +28,18 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + subpoena - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase - - @@ -74,43 +52,20 @@ DELETE FROM infringement where recruit_id in ${endpointArguments} ${extraConditions}; DELETE FROM system_document where attachment_id in (SELECT id FROM attachment where recruit_id in ${endpointArguments} ${extraConditions}) ; DELETE FROM attachment where recruit_id in ${endpointArguments} ${extraConditions}; + DELETE FROM recruits WHERE id in ${endpointArguments} ${extraConditions}; END $$; ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase - - - - - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase + decision-document-service @@ -142,14 +97,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + journal_dev @@ -165,14 +120,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + geps_notifications @@ -186,43 +141,20 @@ FROM incident_history where incident_id in (select id from incident where recruit_id in ${endpointArguments} ${extraConditions}); DELETE FROM incident where recruit_id in ${endpointArguments} ${extraConditions}; + DELETE FROM recruits where id in ${endpointArguments} ${extraConditions}; END $$; ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase - - - - - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase + incidents @@ -251,14 +183,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + person_registry @@ -269,113 +201,21 @@ DO $$ BEGIN - DELETE FROM recruits where id in ${endpointArguments} ${extraConditions}; - END - $$; - ]]> - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase - - - - - - - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase - - - - - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase - - - - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase - - - - - - - - - localhost - 5432 - sqlUser - sqlPassword - org.postgresql.Driver - org.postgresql.xa.PGXADataSource - 15 - mainDatabase + appeal-document-service \ No newline at end of file diff --git a/config-data-executor/config-examples/unblock.xml b/config-data-executor/config-examples/unblock.xml index 4184d5c..f1acdd7 100644 --- a/config-data-executor/config-examples/unblock.xml +++ b/config-data-executor/config-examples/unblock.xml @@ -18,14 +18,14 @@ ]]> - localhost + 10.10.31.118 5432 - sqlUser - sqlPassword + ervu + ervu org.postgresql.Driver org.postgresql.xa.PGXADataSource 15 - mainDatabase + person_registry