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
55f9157e
Commit
55f9157e
authored
Jan 24, 2024
by
Denys Tito Urbano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] Parametro lista_matricula_id para el endpoint execute_redes
parent
1428f62a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
PostgreSqlExcel.java
...ava/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
+4
-1
No files found.
src/main/java/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
View file @
55f9157e
...
@@ -245,12 +245,15 @@ public class PostgreSqlExcel implements ExcelDAO {
...
@@ -245,12 +245,15 @@ public class PostgreSqlExcel implements ExcelDAO {
try
{
try
{
String
p_tipo_vista
=
json
.
getString
(
"p_tipo_vista"
);
String
p_tipo_vista
=
json
.
getString
(
"p_tipo_vista"
);
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"
);
conexion
=
PostgreSqlFactoryDAO
.
obtenerConexion
(
"siiaa"
);
String
sql
=
"SELECT * FROM matricula.func_redes_sociales
(?
)"
;
String
sql
=
"SELECT * FROM matricula.func_redes_sociales
( ?, ? :: JSON
)"
;
PreparedStatement
ps
=
conexion
.
prepareStatement
(
sql
);
PreparedStatement
ps
=
conexion
.
prepareStatement
(
sql
);
ps
.
setString
(
1
,
p_tipo_vista
);
ps
.
setString
(
1
,
p_tipo_vista
);
ps
.
setString
(
2
,
lista_matricula_id_string
);
ResultSet
rs
=
ps
.
executeQuery
();
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