save
This commit is contained in:
parent
27c43a9eba
commit
363fa8f35c
3 changed files with 80 additions and 53 deletions
|
|
@ -4,16 +4,16 @@
|
|||
<![CDATA[
|
||||
DO
|
||||
$$
|
||||
begin
|
||||
update recruits
|
||||
set current_recruitment_id = jsonb_extract_path_text(extra_info,'blocked','cur')::uuid
|
||||
,target_recruitment_id = jsonb_extract_path_text(extra_info,'blocked','trg')::uuid
|
||||
,department_id_old = jsonb_extract_path_text(extra_info,'blocked','dio')::uuid
|
||||
,system_pgs_status = '1.2'
|
||||
,conscription = null
|
||||
,extra_info = extra_info - ('blocked')
|
||||
where id in ${endpointArguments} ${extraConditions};
|
||||
end
|
||||
begin
|
||||
update recruits
|
||||
set current_recruitment_id = jsonb_extract_path_text(extra_info,'blocked','cur')::uuid
|
||||
,target_recruitment_id = jsonb_extract_path_text(extra_info,'blocked','trg')::uuid
|
||||
,department_id_old = jsonb_extract_path_text(extra_info,'blocked','dio')::uuid
|
||||
,system_pgs_status = '1.2'
|
||||
,conscription = null
|
||||
,extra_info = extra_info - ('blocked')
|
||||
where id in ${endpointArguments};
|
||||
end
|
||||
$$;
|
||||
]]>
|
||||
</RequestURL>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue