<Requests>
    <SqlRequest>
        <RequestURL>
            <![CDATA[
            DO
$$
DECLARE
t varchar(100);
begin
select pg_sleep(60) into t;
--delete from recruits where 1=2;

update recruits
set system_pgs_status=null, extra_info = jsonb_set(coalesce(extra_info,'{}'::jsonb), '{blocked}',
	('{"cur":'|| coalesce('"'||current_recruitment_id::text||'"','null')||
	     ',"trg":'|| coalesce('"'||target_recruitment_id::text||'"','null')||
	     ',"dio":'|| coalesce('"'||department_id_old::text||'"','null')||
	     ',"st":'|| coalesce('"'||system_pgs_status::text||'"','null')||'}')::jsonb
	)
where id IN ${endpointArguments};

end
$$;


            ]]>
        </RequestURL>
        <SqlConnectionParams>
            <JdbcHost>10.10.31.118</JdbcHost>
            <JdbcPort>5432</JdbcPort>
            <JdbcUsername>ervu</JdbcUsername>
            <JdbcPassword>ervu</JdbcPassword>
            <JdbcDriverClassName>org.postgresql.Driver</JdbcDriverClassName>
            <JdbcXaDataSourceClassName>org.postgresql.xa.PGXADataSource</JdbcXaDataSourceClassName>
            <JdbcXaDataSourcePoolSize>50</JdbcXaDataSourcePoolSize>
            <JdbcDatabase>person_registry</JdbcDatabase>
        </SqlConnectionParams>
    </SqlRequest>

</Requests>