Commit 364d3f90 by Denys Tito

[ADD] Parametro tipo_informe_id en actualizar informe vacacional

parent 356fa6fd
......@@ -773,7 +773,7 @@ public class PostgreSqlExcel implements ExcelDAO {
@Override
public JSONObject informeVacacionalActualizar(JSONObject body) throws Exception {
String sql = "SELECT * FROM matricula.func_informe_vacacional_actualizar ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );";
String sql = "SELECT * FROM matricula.func_informe_vacacional_actualizar ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );";
JSONObject data = PostgreSqlFactoryDAO.queryPSSingle("siiaa", sql, body.getJSONArray("params"));
return new JSONObject(data.getString("json"));
}
......
......@@ -672,6 +672,10 @@ public class ExcelServices {
params.put(27, entrada.getInt("matricula_id"));
}
if (!entrada.isNull("tipo_informe_id")) {
params.put(28, entrada.getInt("tipo_informe_id"));
}
return dao.informeVacacionalActualizar(entrada.put("params", params));
}
......
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