leonardo 2016-06-06 17:17:39 +00:00
parent 10e39b152a
commit 3853eca29f
1 changed files with 3 additions and 1 deletions

View File

@ -428,7 +428,9 @@ public class RutaCombinacionHibernateDAO extends GenericHibernateDAO<RutaCombina
sb.append(vt.getRutaId()).append(","); sb.append(vt.getRutaId()).append(",");
} }
String listInt = sb.toString().substring(0, sb.toString().length() - 1); String listInt = sb.toString().substring(0, sb.toString().length() - 1);
hql.append(" AND RC.RUTA_ID in (").append(listInt).append(")"); if (!listInt.contains("-1")){
hql.append(" AND RC.RUTA_ID in (").append(listInt).append(")");
}
} }
if (!lsMarca.isEmpty()) { if (!lsMarca.isEmpty()) {
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");