Commit af43c1b4 by Billy Larru

modificando DAOHelper

parent f6b7360a
...@@ -14,7 +14,7 @@ import org.apache.logging.log4j.Logger; ...@@ -14,7 +14,7 @@ import org.apache.logging.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import salidasautomaticas.dao.SalidasDAO; import salidasautomaticas.dao.SalidasDAO;
import salidasautomaticas.util.EstandarDAO; import salidasautomaticas.util.DAOHelper;
/** /**
* *
...@@ -67,7 +67,7 @@ public class SalidasMysqlDAO implements SalidasDAO { ...@@ -67,7 +67,7 @@ public class SalidasMysqlDAO implements SalidasDAO {
JSONArray parametrosQuery = new JSONArray(); JSONArray parametrosQuery = new JSONArray();
parametrosQuery.put(getFechaHoy()); parametrosQuery.put(getFechaHoy());
jsonArray = EstandarDAO.getInstance().consultar(cn, query, parametrosQuery); jsonArray = DAOHelper.getInstance().consultar(cn, query, parametrosQuery);
return jsonArray; return jsonArray;
} }
...@@ -155,7 +155,7 @@ public class SalidasMysqlDAO implements SalidasDAO { ...@@ -155,7 +155,7 @@ public class SalidasMysqlDAO implements SalidasDAO {
JSONArray parametros = new JSONArray(); JSONArray parametros = new JSONArray();
parametros.put(horaProgramada); parametros.put(horaProgramada);
JSONArray jsonArray = EstandarDAO.getInstance().consultar(cn, query, parametros); JSONArray jsonArray = DAOHelper.getInstance().consultar(cn, query, parametros);
return jsonArray; return jsonArray;
} }
...@@ -196,7 +196,7 @@ public class SalidasMysqlDAO implements SalidasDAO { ...@@ -196,7 +196,7 @@ public class SalidasMysqlDAO implements SalidasDAO {
.put(aleatorioMin) .put(aleatorioMin)
.put(asistencia.getString("codasis")); .put(asistencia.getString("codasis"));
resultado = EstandarDAO.getInstance().ejecutar(cn, queryPersonal, parametros); resultado = DAOHelper.getInstance().ejecutar(cn, queryPersonal, parametros);
updateCounts[i] = resultado.getInt("msg"); updateCounts[i] = resultado.getInt("msg");
i++; i++;
......
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