From 92b660239f5b765a16a328839ddf6734a8a1a1aa Mon Sep 17 00:00:00 2001 From: "alexandre.lima" Date: Sat, 26 Aug 2017 19:13:11 +0000 Subject: [PATCH] Fixes Bug #0009640 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@73165 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/RutaServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/RutaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/RutaServiceImpl.java index 74c1d2dc4..ff2044286 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/RutaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/RutaServiceImpl.java @@ -229,7 +229,12 @@ public class RutaServiceImpl implements RutaService { } Boolean isClone = entidad.getIsClone() != null ? entidad.getIsClone() : Boolean.FALSE; - entidad = rutaDAO.suscribir(entidad); + + if (entidad.getRutaId() == null) { + entidad = rutaDAO.suscribir(entidad); + } else { + entidad = rutaDAO.actualizacion(entidad); + } if (lsParadasSequencia != null) { if (!isClone) { generarSecuencias(entidad, lsParadasSequencia);