gleimar 2012-08-31 19:05:53 +00:00
parent 93e76f8fa5
commit 2d6a55be7e
1 changed files with 2 additions and 1 deletions

View File

@ -143,8 +143,9 @@ public class TarifaOficialHibernateDAO extends GenericHibernateDAO<TarifaOficial
@Override
public void aplicarArredondamentoTarifa(Integer orgaoConcedenteId, Integer usuarioId) {
Query query = getSession().createQuery("UPDATE TarifaOficial tao set tao.precio = FN_ARREDONDAMENTO_TARIFA(tao.precio,tao.orgaoConcedente.orgaoConcedenteId,tao.importeseguro,tao.importetaxaembarque,tao.importepedagio,tao.importeoutros) where tao.orgaoConcedente.orgaoConcedenteId = :orgao");
Query query = getSession().createQuery("UPDATE TarifaOficial tao set tao.precio = FN_ARREDONDAMENTO_TARIFA(tao.precio,tao.orgaoConcedente.orgaoConcedenteId,tao.importeseguro,tao.importetaxaembarque,tao.importepedagio,tao.importeoutros), tao.activo = true , tao.fecmodif= CURRENT_TIMESTAMP(), tao.usuarioId =:usuarioId where tao.orgaoConcedente.orgaoConcedenteId = :orgao");
query.setParameter("orgao", orgaoConcedenteId);
query.setParameter("usuarioId", usuarioId);
query.executeUpdate();
}
}