fixes bug#15403
dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@96659 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
826b3f20dc
commit
4ddbea8cca
|
@ -330,7 +330,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
sql.append(" and ep.empresa_id = ? ");
|
sql.append(" and ep.empresa_id = ? ");
|
||||||
sql.append(" and e.cveestado = ? ");
|
sql.append(" and e.cveestado = ? ");
|
||||||
sql.append(" and (bpe.xmlregular is not null or bpe.xmlcontingencia is not null) ");
|
sql.append(" and (bpe.xmlregular is not null or bpe.xmlcontingencia is not null) ");
|
||||||
sql.append("order by to_number(c.numfoliosistema), to_number(num_bpe), dh_emisao ");
|
sql.append("order by to_number(c.numfoliosistema), to_number(num_bpe), dh_emisao, tipoevento desc ");
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,6 +842,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
sql.append(" to_char(trunc(c.feccreacion), 'yyyymmdd') as datamov, ");
|
sql.append(" to_char(trunc(c.feccreacion), 'yyyymmdd') as datamov, ");
|
||||||
sql.append(" bpe.chbpe, ");
|
sql.append(" bpe.chbpe, ");
|
||||||
sql.append(" bpe.codstat as codstatus, ");
|
sql.append(" bpe.codstat as codstatus, ");
|
||||||
|
sql.append(" bpe.tipoevento, ");
|
||||||
sql.append(" bpe.cmunini, ");
|
sql.append(" bpe.cmunini, ");
|
||||||
sql.append(" bpe.cmunfim, ");
|
sql.append(" bpe.cmunfim, ");
|
||||||
sql.append(" bpe.ufini, ");
|
sql.append(" bpe.ufini, ");
|
||||||
|
@ -896,7 +897,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
sql.append(" and ep.empresa_id = :EMPRESA_ID ");
|
sql.append(" and ep.empresa_id = :EMPRESA_ID ");
|
||||||
sql.append(" and e.cveestado in ( ").append(ufs).append(" ) ");
|
sql.append(" and e.cveestado in ( ").append(ufs).append(" ) ");
|
||||||
sql.append(" and (bpe.xmlregular is not null or bpe.xmlcontingencia is not null) ");
|
sql.append(" and (bpe.xmlregular is not null or bpe.xmlcontingencia is not null) ");
|
||||||
sql.append("order by numfoliosistema, num_bpe, datamov ");
|
sql.append("order by numfoliosistema, num_bpe, datamov, tipoevento desc ");
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue