Commit 078e03d5 by Denys Tito Urbano

[EDIT] Parametro tipo_operacion en el reporte vacacional

parent c343daa3
......@@ -296,8 +296,12 @@ public class PostgreSqlExcel implements ExcelDAO {
conexion = PostgreSqlFactoryDAO.obtenerConexion("siiaa");
try {
String sql = "SELECT * FROM matricula.func_reporte_general_vacacional()";
ResultSet rs = conexion.prepareStatement(sql).executeQuery();
String tipo_operacion = json.optString("tipo_operacion");
String sql = "SELECT * FROM matricula.func_reporte_general_vacacional(?)";
PreparedStatement ps = conexion.prepareStatement(sql);
ps.setString(1, tipo_operacion);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
int columnCount = rs.getMetaData().getColumnCount();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment