alexandre.lima 2017-07-25 18:43:04 +00:00
parent b5ea32c0f7
commit cc60b87ac3
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ public class SQLBuilderOracle implements SQLBuilder {
public String getSQLAtualizarPrecioPorTPP(final Integer rutaId, final Integer usuarioId, public String getSQLAtualizarPrecioPorTPP(final Integer rutaId, final Integer usuarioId,
final Integer orgaoConcedenteId, TipoSeguro tipoSeguro) { final Integer orgaoConcedenteId, TipoSeguro tipoSeguro) {
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append("update tarifa_oficial set PRECIO = PRECIO + IMPORTETPP "); sb.append("update tarifa_oficial set PRECIO = PRECIO + nvl(IMPORTETPP,0) ");
sb.append(" where "); sb.append(" where ");
sb.append(" tarifa_oficial.activo = 1 "); sb.append(" tarifa_oficial.activo = 1 ");
if (rutaId != null) { if (rutaId != null) {