From ee8188d16282d56ef595fcf9384708729ea4ed21 Mon Sep 17 00:00:00 2001 From: gleimar Date: Thu, 21 Mar 2013 15:22:22 +0000 Subject: [PATCH] =?UTF-8?q?-=20corre=C3=A7=C3=A3o=20na=20gera=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20corridas=20com=20exce=C3=A7=C3=A3o=20de=20tempo=20maior?= =?UTF-8?q?=20que=2024=20hrs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@25299 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/CorridaServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java index b17b07bf2..23754763b 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java @@ -719,16 +719,16 @@ public class CorridaServiceImpl implements CorridaService { Calendar fecCorrida = Calendar.getInstance(); fecCorrida.setTime(corridaTramo.getFechorllegada()); - if (diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK)) || diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK))) { + if (diasSemana.contains(fecCorrida.get(Calendar.DAY_OF_WEEK))) { log.info("Hay Excepcione de tiempo"); + Calendar fechorsalida = Calendar.getInstance(); fechorsalida.setTime(corridaTramo.getFechorsalida()); - Calendar tmpTiemporecorrido = Calendar.getInstance(); - tmpTiemporecorrido.setTime(tramoTiempo.getTiemporecorrido()); + HoraSistema horaSistema = new HoraSistema(tramoTiempo.getTiemporecorrido()); - fechorsalida.add(Calendar.HOUR, tmpTiemporecorrido.get(Calendar.HOUR)); - fechorsalida.add(Calendar.MINUTE, tmpTiemporecorrido.get(Calendar.MINUTE)); + fechorsalida.add(Calendar.HOUR, horaSistema.getHora()); + fechorsalida.add(Calendar.MINUTE, horaSistema.getMinuto()); nuevaFecLlegada = fechorsalida.getTime(); }