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
641ae8c8
authored
Jun 12, 2025
by
RONALDO RODRIGUES DE OLIVEIRA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filtra processos e inativar. Alguns serão reprocessandos.
parent
53b59b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
declaracao_omissao/regras-100625/Script-anonimos-reprocessamento-declaracoes.sql
declaracao_omissao/regras-100625/Script-anonimos-reprocessamento-declaracoes.sql
0 → 100644
View file @
641ae8c8
do
$$
declare
var_reprocessar
record
;
begin
for
var_reprocessar
in
(
select
ode
.
odeid
as
odeid
from
par
.
omissodeclarado
ode
where
ode
.
odedata
<
'2025-06-10'
and
ode
.
prpid
not
in
(
select
distinct
prp
.
prpid
from
par
.
edicaodeclaracaoomissao
edm
inner
join
par
.
omissodeclarado
ode
on
edm
.
odeid
=
ode
.
odeid
inner
join
par
.
processopar
prp
on
prp
.
prpid
=
ode
.
prpid
)
)
loop
raise
notice
'Declaração que irão reprocesssar ode.odeid = %'
,
var_reprocessar
.
odeid
;
update
par
.
omissodeclarado
set
odestatus
=
'I'
where
odeid
=
var_reprocessar
.
odeid
;
end
loop
;
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