fixes bug #6383
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@45453 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b5a2228e58
commit
99942a4b16
|
@ -73,14 +73,7 @@ public class SQLBuilderOracle implements SQLBuilder {
|
||||||
sb.append(" inner join ruta r on r.ruta_id = rc.ruta_id ");
|
sb.append(" inner join ruta r on r.ruta_id = rc.ruta_id ");
|
||||||
sb.append(" inner join ruta_empresa re on r.ruta_id = re.ruta_id ");
|
sb.append(" inner join ruta_empresa re on r.ruta_id = re.ruta_id ");
|
||||||
sb.append(" inner join marca ma on ma.empresa_id = re.empresa_id ");
|
sb.append(" inner join marca ma on ma.empresa_id = re.empresa_id ");
|
||||||
sb.append(" inner join orgao_tramo tc on tc.tramo_id = rc.tramo_id ");
|
sb.append(" inner join orgao_concedente oc on oc.orgaoconcedente_id =r.orgaoconcedente_id ");
|
||||||
sb.append(" and tc.CLASESERVICIO_ID = r.CLASESERVICIO_ID and tc.activo =1 ");
|
|
||||||
sb.append(" inner join orgao_concedente oc on ");
|
|
||||||
sb.append(" oc.orgaoconcedente_id = tc.orgaoconcedente_id ");
|
|
||||||
sb.append(" and oc.orgaoconcedente_id =r.orgaoconcedente_id ");
|
|
||||||
sb.append(" inner join coeficiente_tarifa ct1 on ct1.coeficientetarifa_id = tc.coeficientetarifa1_id ");
|
|
||||||
sb.append(" left join coeficiente_tarifa ct2 on ct2.coeficientetarifa_id = tc.coeficientetarifa2_id ");
|
|
||||||
sb.append(" left join coeficiente_tarifa ct3 on ct3.coeficientetarifa_id = tc.coeficientetarifa3_id ");
|
|
||||||
sb.append(" inner join tramo t on t.tramo_id = rc.tramo_id ");
|
sb.append(" inner join tramo t on t.tramo_id = rc.tramo_id ");
|
||||||
sb.append(" inner join parada po on po.parada_id = t.origen_id ");
|
sb.append(" inner join parada po on po.parada_id = t.origen_id ");
|
||||||
sb.append(" inner join parada pd on pd.parada_id = t.destino_id ");
|
sb.append(" inner join parada pd on pd.parada_id = t.destino_id ");
|
||||||
|
@ -96,7 +89,6 @@ public class SQLBuilderOracle implements SQLBuilder {
|
||||||
sb.append(" and r.ruta_id = ").append(codRuta);
|
sb.append(" and r.ruta_id = ").append(codRuta);
|
||||||
}
|
}
|
||||||
sb.append(" and r.activo = 1 ");
|
sb.append(" and r.activo = 1 ");
|
||||||
sb.append(" and tc.activo = 1 ");
|
|
||||||
sb.append(" and mc.marca_id <> -1 ");
|
sb.append(" and mc.marca_id <> -1 ");
|
||||||
sb.append(" and mc.activo = 1 ");
|
sb.append(" and mc.activo = 1 ");
|
||||||
sb.append(" and re.activo = 1 ");
|
sb.append(" and re.activo = 1 ");
|
||||||
|
|
Loading…
Reference in New Issue