refatoração fixes bug#7405
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55422 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
30e32bfd81
commit
c92d017cf5
|
@ -55,7 +55,13 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
Labels.register(new MyLabelLocatorGeneral((ServletContext) wapp.getNativeContext()));
|
||||
Labels.register(new MyLabelLocatorCliente((ServletContext) wapp.getNativeContext()));
|
||||
|
||||
if (!ipBloqueadoGeracaoServico()) {
|
||||
boolean ipBloqueadoGeracaoServico = ipBloqueadoGeracaoServico();
|
||||
|
||||
log.info("ipBloqueadoGeracaoServico="+ipBloqueadoGeracaoServico);
|
||||
|
||||
if (!ipBloqueadoGeracaoServico) {
|
||||
log.info("ip liberado");
|
||||
|
||||
// Generacion Automatica de Corridas
|
||||
jobGeneracionCorridas();
|
||||
}
|
||||
|
@ -119,11 +125,12 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
Integer[] hora = horaExecucion();
|
||||
|
||||
if (hora == null) {
|
||||
log.debug("constante HORA_GENERACION_CORRIDA não habilitada.");
|
||||
log.info("constante HORA_GENERACION_CORRIDA não habilitada.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
log.debug("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]);
|
||||
log.info("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]);
|
||||
|
||||
Trigger trigger = TriggerUtils.makeDailyTrigger("generacionCorridasTrigger", hora[0], hora[1]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue