bug#11600
dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@84192 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9205ecc2f2
commit
5ca9ff9b9e
|
@ -100,6 +100,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
|||
sql.append("where c.activo = 1 and e.activo = 1 and ei.activo = 1 ");
|
||||
sql.append(" and bpe.tipoamb = 1 and ep.activo = 1 ");
|
||||
//sql.append(" and bpe.codstat <> 150 "); // não deve ser enviados os registros de contigencia
|
||||
sql.append(" and (codstat <> 135 and (tipoevento <> 110115 or tipoevento is null)) ");
|
||||
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) >= to_date(?,'DD/MM/YYYY HH24:MI:SS') ");
|
||||
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) <= to_date(?,'DD/MM/YYYY HH24:MI:SS')");
|
||||
sql.append(" and ep.empresa_id = ? ");
|
||||
|
|
Loading…
Reference in New Issue