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
9e243226
authored
Feb 03, 2025
by
RONALDO RODRIGUES DE OLIVEIRA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PLpgSQLFunction-etiqNaturezaInteresse-REQ000000329189.sql
parent
fb526f8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
PLpgSQLFunction-etiqNaturezaInteresse-REQ000000329189.sql
PLpgSQLFunction-etiqNaturezaInteresse-REQ000000329189.sql
View file @
9e243226
...
@@ -22,7 +22,6 @@ BEGIN
...
@@ -22,7 +22,6 @@ BEGIN
EXIT
;
EXIT
;
END
IF
;
END
IF
;
-- raise notice 'iniciomandato %, fimmandato %, iniciovigencia %, fimvigencia %, programa %', iniciomandato, fimmandato, iniciovigencia, fimvigencia, programa;
SELECT
SELECT
case
UPPER
(
programa
)
case
UPPER
(
programa
)
when
'PAC'
then
(
dpcdatainiciocontagem2
+
interval
'60 day'
)::
date
when
'PAC'
then
(
dpcdatainiciocontagem2
+
interval
'60 day'
)::
date
...
@@ -37,7 +36,7 @@ BEGIN
...
@@ -37,7 +36,7 @@ BEGIN
ELSE
ELSE
data_final_pc
:
=
fimvigencia
+
60
;
data_final_pc
:
=
fimvigencia
+
60
;
END
IF
;
END
IF
;
-- raise notice 'data_final_pc %', data_final_pc;
IF
fimmandato
IS
NULL
THEN
IF
fimmandato
IS
NULL
THEN
natureza
:
=
'Atual Gestor /'
;
natureza
:
=
'Atual Gestor /'
;
IF
((
iniciomandato
>=
iniciovigencia
)
AND
(
iniciomandato
<=
fimvigencia
))
THEN
IF
((
iniciomandato
>=
iniciovigencia
)
AND
(
iniciomandato
<=
fimvigencia
))
THEN
...
...
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