alexandre.lima 2017-08-26 19:13:11 +00:00
parent 8e2449a981
commit 92b660239f
1 changed files with 6 additions and 1 deletions

View File

@ -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);