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
1c49cc07
Commit
1c49cc07
authored
Apr 20, 2024
by
Denys Tito Urbano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] Parametro periodo_academico_id para el endpoint ejecutar_reporte_pagos
parent
55f9157e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
PostgreSqlExcel.java
...ava/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
+8
-2
ExcelServices.java
...ain/java/pe/so/api/formulario/services/ExcelServices.java
+6
-0
No files found.
src/main/java/pe/so/api/formulario/postgresdao/PostgreSqlExcel.java
View file @
1c49cc07
...
...
@@ -614,8 +614,14 @@ public class PostgreSqlExcel implements ExcelDAO {
conexion
=
PostgreSqlFactoryDAO
.
obtenerConexion
(
"siiaa"
);
try
{
String
sql
=
"select * from matricula.func_reporte_general_pago();"
;
ResultSet
rs
=
conexion
.
prepareStatement
(
sql
).
executeQuery
();
int
periodo_academico_id
=
json
.
getInt
(
"periodo_academico_id"
);
String
sql
=
"select * from matricula.func_reporte_general_pago (?);"
;
PreparedStatement
ps
=
conexion
.
prepareStatement
(
sql
);
ps
.
setInt
(
1
,
periodo_academico_id
);
ResultSet
rs
=
ps
.
executeQuery
();
if
(
rs
.
next
())
{
int
columnCount
=
rs
.
getMetaData
().
getColumnCount
();
...
...
src/main/java/pe/so/api/formulario/services/ExcelServices.java
View file @
1c49cc07
...
...
@@ -64,6 +64,12 @@ public class ExcelServices {
}
public
JSONObject
execute_reporte_pagos
(
JSONObject
entrada
)
throws
Exception
{
JSONArray
params
=
new
JSONArray
();
params
.
put
(
0
,
entrada
.
getInt
(
"periodo_academico_id"
));
entrada
.
put
(
"params"
,
params
);
return
dao
.
execute_reporte_pagos
(
entrada
);
}
...
...
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