- correção na geração de corridas com exceção de tempo maior que 24 hrs
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@25299 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
27179b0371
commit
ee8188d162
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue