fixes bug #8096
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@61875 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c0395c22f6
commit
c075243050
|
@ -456,7 +456,7 @@ public class SQLBuilderOracle implements SQLBuilder {
|
||||||
sb.append(" and tao.tramo_id = tarifa_oficial.tramo_id ");
|
sb.append(" and tao.tramo_id = tarifa_oficial.tramo_id ");
|
||||||
sb.append(" and tepKm.orgaoconcedente_id = tarifa_oficial.orgaoconcedente_id ");
|
sb.append(" and tepKm.orgaoconcedente_id = tarifa_oficial.orgaoconcedente_id ");
|
||||||
if (idsEmpresas != null) {
|
if (idsEmpresas != null) {
|
||||||
sb.append(" and m.empresa_id in ( ").append(idsEmpresas.toString().substring(1, idsEmpresas.toString().length()-1)).append(" ) ");
|
sb.append(" and m.empresa_id in (-1,").append(idsEmpresas.toString().substring(1, idsEmpresas.toString().length()-1)).append(" ) ");
|
||||||
}
|
}
|
||||||
sb.append(") ");
|
sb.append(") ");
|
||||||
sb.append(", usuario_id = ").append(usuarioId).append(",fecmodif = ").append(DBUtil.getInstance().dbSysdate()).append(" ");
|
sb.append(", usuario_id = ").append(usuarioId).append(",fecmodif = ").append(DBUtil.getInstance().dbSysdate()).append(" ");
|
||||||
|
@ -555,7 +555,7 @@ public class SQLBuilderOracle implements SQLBuilder {
|
||||||
sb.append(" and tao.tramo_id = tarifa_oficial.tramo_id ");
|
sb.append(" and tao.tramo_id = tarifa_oficial.tramo_id ");
|
||||||
sb.append(" and m.empresa_id = tepFixo.empresa_id");
|
sb.append(" and m.empresa_id = tepFixo.empresa_id");
|
||||||
if (idsEmpresas != null) {
|
if (idsEmpresas != null) {
|
||||||
sb.append(" and m.empresa_id in ( ").append(idsEmpresas.toString().substring(1, idsEmpresas.toString().length()-1)).append(" ) ");
|
sb.append(" and m.empresa_id in (-1,").append(idsEmpresas.toString().substring(1, idsEmpresas.toString().length()-1)).append(" ) ");
|
||||||
}
|
}
|
||||||
sb.append("),IMPORTETAXAEMBARQUE) ");
|
sb.append("),IMPORTETAXAEMBARQUE) ");
|
||||||
sb.append(", usuario_id = ").append(usuarioId).append(",fecmodif = ").append(DBUtil.getInstance().dbSysdate()).append(" ");
|
sb.append(", usuario_id = ").append(usuarioId).append(",fecmodif = ").append(DBUtil.getInstance().dbSysdate()).append(" ");
|
||||||
|
|
Loading…
Reference in New Issue