Tramitacao manual pelo script

parent bbb392e5
Showing with 25 additions and 0 deletions
DO $$
BEGIN
BEGIN
UPDATE par3.execucao_prestacao_contas
set epcstatus = 'I'
where epcid = '5650';
EXCEPTION
WHEN OTHERS THEN
RAISE WARNING 'Erro ao alterar prestacao de contas: %', SQLERRM;
END;
BEGIN
UPDATE par3.execucao_prestacao_contas
set epcstatus = 'I'
where epcid = '5651';
EXCEPTION
WHEN OTHERS THEN
RAISE WARNING 'Erro ao alterar prestacao de contas: %', SQLERRM;
END;
perform alteraestadodoc(59908122, 7168, 'Tramitado em atendimento a REQ000000345651');
perform alteraestadodoc(59908123, 7169, 'Tramitado em atendimento a REQ000000345651');
perform alteraestadodoc(59933284, 7168, 'Tramitado em atendimento a REQ000000345651');
perform alteraestadodoc(59933285, 7169, 'Tramitado em atendimento a REQ000000345651');
END $$;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment