gleimar 2014-05-06 18:09:07 +00:00
parent 2fe7e255a7
commit d6f2829502
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import org.hibernate.type.DateType;
import org.hibernate.type.IntegerType;
import org.hibernate.type.LongType;
import org.hibernate.type.StringType;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
@ -24,6 +25,7 @@ import com.rjconsultores.ventaboletos.vo.caja.UsuarioVO;
@Repository("cajaDAO")
public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implements CajaDAO {
private static Logger log = org.slf4j.LoggerFactory.getLogger(CajaHibernateDAO.class);
@Autowired
private SQLBuilder sqlBuilder;
@ -137,6 +139,8 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
}
return usuarios;
} catch (Exception e){
log.error("",e);
return null;
}
}

View File

@ -653,7 +653,7 @@ public class SQLBuilderOracle implements SQLBuilder {
sb.append(" c.CORRIDA_ID as \"corridaId\", ");
sb.append(" (case when c.motivocancelacion_id is null then cfp.importe else cfp.importe * -1 end) as \"precioPagado\", ");
sb.append(" c.FECHORVENTA as \"fecHorVenta\", ");
sb.append(" c.IMPORTETAXAEMBARQUE as \"importeTaxaEmbarque\", ");
sb.append(" (case when c.motivocancelacion_id is null then c.IMPORTETAXAEMBARQUE else c.IMPORTETAXAEMBARQUE * -1 end) as \"importeTaxaEmbarque\", ");
sb.append(" ru.descruta as \"ruta\", ");
sb.append(" ct.numautorizacion as \"numAutorizacion\", ");
sb.append(" (case when cfp.formapago_id = 11 then cdp.numdocumento else null end) as \"ordenSevicio\", ");