Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
formulario-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Denys Tito Urbano
formulario-api
Commits
bb31baa7
Commit
bb31baa7
authored
Oct 08, 2025
by
Denys Tito Urbano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] Parametro turno en migracion de informes (admisión)
parent
e2369dbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
PostgreSqlExcel.java
...ava/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
+11
-3
No files found.
src/main/java/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
View file @
bb31baa7
...
...
@@ -134,9 +134,12 @@ public class PostgreSqlExcel implements ExcelDAO {
String
p_medio_difusion_nombre
=
json
.
getString
(
"p_medio_difusion_nombre"
);
String
p_elija_fecha
=
json
.
getString
(
"p_elija_fecha"
);
String
p_unique_id
=
json
.
getString
(
"p_unique_id"
);
String
p_solicitud
=
!
json
.
isNull
(
"p_solicitud"
)
?
json
.
getString
(
"p_solicitud"
)
:
null
;
int
p_cantidad_invitado
=
json
.
optInt
(
"p_cantidad_invitado"
);
String
p_turno
=
!
json
.
isNull
(
"p_turno"
)
?
json
.
getString
(
"p_turno"
)
:
null
;
conexion
=
PostgreSqlFactoryDAO
.
obtenerConexion
(
"siiaa"
);
String
sql
=
"select matricula.func_informe_registrar(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
;
String
sql
=
"select matricula.func_informe_registrar(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?
)"
;
PreparedStatement
ps
=
conexion
.
prepareStatement
(
sql
);
ps
.
setString
(
1
,
p_drive_origen
);
ps
.
setInt
(
2
,
p_drive_fila
);
...
...
@@ -161,6 +164,9 @@ public class PostgreSqlExcel implements ExcelDAO {
ps
.
setString
(
21
,
p_atencion_observacion
);
ps
.
setString
(
22
,
p_elija_fecha
);
ps
.
setString
(
23
,
p_unique_id
);
ps
.
setString
(
24
,
p_solicitud
);
ps
.
setInt
(
25
,
p_cantidad_invitado
);
ps
.
setString
(
26
,
p_turno
);
System
.
out
.
println
(
"Ejecutando: "
+
ps
);
...
...
@@ -250,15 +256,17 @@ public class PostgreSqlExcel implements ExcelDAO {
try
{
String
p_tipo_vista
=
json
.
getString
(
"p_tipo_vista"
);
int
periodo_academico_id
=
json
.
optInt
(
"periodo_academico_id"
);
JSONArray
lista_matricula_id
=
json
.
optJSONArray
(
"lista_matricula_id"
);
String
lista_matricula_id_string
=
lista_matricula_id
==
null
?
null
:
lista_matricula_id
.
toString
();
conexion
=
PostgreSqlFactoryDAO
.
obtenerConexion
(
"siiaa"
);
String
sql
=
"SELECT * FROM matricula.func_redes_sociales ( ?, ? :: JSON )"
;
String
sql
=
"SELECT * FROM matricula.func_redes_sociales ( ?, ?
, ?
:: JSON )"
;
PreparedStatement
ps
=
conexion
.
prepareStatement
(
sql
);
ps
.
setString
(
1
,
p_tipo_vista
);
ps
.
setString
(
2
,
lista_matricula_id_string
);
ps
.
setInt
(
2
,
periodo_academico_id
);
ps
.
setString
(
3
,
lista_matricula_id_string
);
ResultSet
rs
=
ps
.
executeQuery
();
...
...
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