Mudança no filtro para passar a considerar apenas a situação de agrupamento de corridas. Antes olhava só a diferença de datas, o que se mostrou errado.
parent
7c54cff254
commit
06da0c5d97
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.54.0</version>
|
||||
<version>1.55.0</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -1100,7 +1100,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
|||
sql.append(" inner join marca m on m.marca_id = bori.marca_id and m.activo = 1 ");
|
||||
sql.append(" inner join empresa e on e.empresa_id = m.empresa_id ");
|
||||
sql.append(" inner join bpe bpe on bpe.boleto_id = bori.boleto_id ");
|
||||
sql.append(" and bpe.activo(case when bori.motivocancelacion_id = 17 and bori.boletooriginal_id is null then 0 else 1 end) ");
|
||||
sql.append(" and bpe.activo = (case when bori.motivocancelacion_id = 17 and bori.boletooriginal_id is null then 0 else 1 end) ");
|
||||
sql.append(" inner join estado est_bpe on bpe.uf = est_bpe.codibge ");
|
||||
sql.append(" left join boleto b on b.boleto_id = coalesce(bori.boletoanterior_id, bori.boletooriginal_id) ");
|
||||
sql.append(" left join bpe bpeori on b.boleto_id = bpeori.boleto_id and bpeori.activo = 1 ");
|
||||
|
|
Loading…
Reference in New Issue