Commit b79af6b2 by Denys Tito

[ADD] Campo estado_detalle_id (Informe)

parent 364d3f90
......@@ -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"));
}
......@@ -787,7 +787,7 @@ public class PostgreSqlExcel implements ExcelDAO {
@Override
public JSONObject informeAcademiaActualizar(JSONObject body) throws Exception {
String sql = "SELECT * FROM matricula.func_informe_academia_actualizar ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );";
String sql = "SELECT * FROM matricula.func_informe_academia_actualizar ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );";
JSONObject data = PostgreSqlFactoryDAO.queryPSSingle("siiaa", sql, body.getJSONArray("params"));
return new JSONObject(data.getString("json"));
}
......
......@@ -676,6 +676,10 @@ public class ExcelServices {
params.put(28, entrada.getInt("tipo_informe_id"));
}
if (!entrada.isNull("estado_detalle_id")) {
params.put(29, entrada.getInt("estado_detalle_id"));
}
return dao.informeVacacionalActualizar(entrada.put("params", params));
}
......@@ -790,6 +794,14 @@ public class ExcelServices {
params.put(26, entrada.getString("grado_nombre"));
}
if (!entrada.isNull("matricula_id")) {
params.put(27, entrada.getInt("matricula_id"));
}
if (!entrada.isNull("estado_detalle_id")) {
params.put(28, entrada.getInt("estado_detalle_id"));
}
return dao.informeAcademiaActualizar(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