Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RONALDO RODRIGUES DE OLIVEIRA
/
simec-scripts-banco
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
65724b4e
authored
Jul 15, 2025
by
MATEUS GUIZELINI JARDIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alterando para que se algum update der erro, mostre
parent
90e54966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
mateus_jardim/script_sql/REQ000000314842.sql
mateus_jardim/script_sql/REQ000000314842.sql
View file @
65724b4e
...
@@ -3,15 +3,23 @@ BEGIN
...
@@ -3,15 +3,23 @@ BEGIN
BEGIN
BEGIN
UPDATE
par3
.
execucao_prestacao_contas
UPDATE
par3
.
execucao_prestacao_contas
set
epcstatus
=
'I'
set
epcstatus
=
'I'
where
epcid
=
'5650'
or
epcid
=
'5651'
;
where
epcid
=
'5650'
;
EXCEPTION
perform
workflow
.
alteraestadodoc
(
59463824
,
7167
,
'Tramitado em atendimento a REQ000000314842'
);
WHEN
OTHERS
THEN
perform
workflow
.
alteraestadodoc
(
59463825
,
7181
,
'Tramitado em atendimento a REQ000000314842'
);
RAISE
WARNING
'Erro ao alterar prestacao de contas: %'
,
SQLERRM
;
perform
workflow
.
alteraestadodoc
(
59463827
,
7167
,
'Tramitado em atendimento a REQ000000314842'
);
BEGIN
perform
workflow
.
alteraestadodoc
(
59463828
,
7181
,
'Tramitado em atendimento a REQ000000314842'
);
UPDATE
par3
.
execucao_prestacao_contas
set
epcstatus
=
'I'
where
epcid
=
'5651'
;
EXCEPTION
EXCEPTION
WHEN
OTHERS
THEN
WHEN
OTHERS
THEN
RAISE
WARNING
'Erro ao alterar prestacao de contas: %'
,
SQLERRM
;
RAISE
WARNING
'Erro ao alterar prestacao de contas: %'
,
SQLERRM
;
END
;
END
;
perform
workflow
.
alteraestadodoc
(
59463824
,
7167
,
'Tramitado em atendimento a REQ000000314842'
);
perform
workflow
.
alteraestadodoc
(
59463825
,
7181
,
'Tramitado em atendimento a REQ000000314842'
);
perform
workflow
.
alteraestadodoc
(
59463827
,
7167
,
'Tramitado em atendimento a REQ000000314842'
);
perform
workflow
.
alteraestadodoc
(
59463828
,
7181
,
'Tramitado em atendimento a REQ000000314842'
);
END
$$
;
END
$$
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment