Merge pull request 'AL-2655' (!179) from AL-2655 into master
Reviewed-on: adm/VentaBoletosAdm#179 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master 1.7.1
commit
d1874e0824
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.7.0</version>
|
||||
<version>1.7.1</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -12,7 +12,6 @@ import java.util.ArrayList;
|
|||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -22,7 +21,6 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioIndiceIRKBean;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
@ -186,13 +184,13 @@ public class RelatorioIndiceIRK extends Relatorio {
|
|||
sb.append(" cjj.corrida_id ");
|
||||
sb.append("), corridas_count AS ( ");
|
||||
sb.append(" SELECT ");
|
||||
sb.append(" to_char(feccorrida, 'HH24') AS hora, ");
|
||||
sb.append(" to_char(feccorrida, 'HH24:MI') AS hora, ");
|
||||
sb.append(" corrida_id, ");
|
||||
sb.append(" COUNT(*) AS quantidade ");
|
||||
sb.append(" FROM ");
|
||||
sb.append(" corridas ");
|
||||
sb.append(" GROUP BY ");
|
||||
sb.append(" to_char(feccorrida, 'HH24'), ");
|
||||
sb.append(" to_char(feccorrida, 'HH24:MI'), ");
|
||||
sb.append(" corrida_id ");
|
||||
sb.append(") ");
|
||||
sb.append("SELECT ");
|
||||
|
@ -230,7 +228,7 @@ public class RelatorioIndiceIRK extends Relatorio {
|
|||
sb.append(" INNER JOIN parada origen ON ( origen.parada_id = tr.origen_id ) ");
|
||||
sb.append(" INNER JOIN parada destino ON ( destino.parada_id = tr.destino_id ) ");
|
||||
sb.append(" INNER JOIN corridas_count cos ON ( cos.corrida_id = co.corrida_id ");
|
||||
sb.append(" AND hora = to_char(co.fechorsalida, 'HH24') ) ");
|
||||
sb.append(" AND hora = to_char(co.fechorsalida, 'HH24:MI') ) ");
|
||||
sb.append("WHERE ");
|
||||
sb.append(" cj.activo = 1 ");
|
||||
sb.append(" AND cj.motivocancelacion_id IS NULL ");
|
||||
|
@ -290,10 +288,6 @@ public class RelatorioIndiceIRK extends Relatorio {
|
|||
private List<RelatorioIndiceIRKBean> preencheAgrupaRelatorioBean(ResultSet rset, Map<String, Object> parametros) throws SQLException {
|
||||
|
||||
lsDadosRelatorio = new ArrayList<RelatorioIndiceIRKBean>();
|
||||
Date dataInicio = (Date) parametros.get("DATA_INICIO");
|
||||
Date dataFinal = (Date) parametros.get("DATA_FINAL");
|
||||
|
||||
|
||||
|
||||
while (rset.next()) {
|
||||
RelatorioIndiceIRKBean relatorioIndiceIRK = new RelatorioIndiceIRKBean();
|
||||
|
@ -320,20 +314,7 @@ public class RelatorioIndiceIRK extends Relatorio {
|
|||
lsDadosRelatorio.add(relatorioIndiceIRK);
|
||||
}
|
||||
|
||||
calcularQuantidadeDeDiasFiltroData(lsDadosRelatorio);
|
||||
return lsDadosRelatorio;
|
||||
}
|
||||
|
||||
private void calcularQuantidadeDeDiasFiltroData(List<RelatorioIndiceIRKBean> lsDadosRelatorio) {
|
||||
|
||||
Map<Date, Integer> qtdDias = new HashMap<Date, Integer>();
|
||||
|
||||
for (RelatorioIndiceIRKBean relatorioIndiceIRKBean : lsDadosRelatorio) {
|
||||
// if(qtdDias.get(relatorioIndiceIRKBean.gets)) {
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue