fixes bug#AL-1418
dev: Valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@115162 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
357a1e9e33
commit
2f6b338ccc
|
@ -38,6 +38,7 @@ public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
|
|||
private static final Integer CEM = Integer.valueOf(100);
|
||||
private static final Integer DECIMAL = Integer.valueOf(4);
|
||||
private static String CONSTANTE_GRATUIDADE_CRIANCA;
|
||||
private static final Integer REC_KM = 2;
|
||||
|
||||
enum IndicadorRelatorio {
|
||||
|
||||
|
@ -83,7 +84,7 @@ public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
|
|||
while (this.resultSet.next()) {
|
||||
|
||||
Integer indicador = (Integer) this.relatorio.getParametros().get("INDICADOR");
|
||||
// Integer rolOperativoId = this.resultSet.getInt("ROLOPERATIVO_ID");
|
||||
Integer rolOperativoId = this.resultSet.getInt("ROLOPERATIVO_ID");
|
||||
Integer corridaId = this.resultSet.getInt("CORRIDA_ID");
|
||||
Integer assentos = this.resultSet.getInt("ASSENTOS");
|
||||
Integer rutaId = this.resultSet.getInt("RUTA_ID");
|
||||
|
@ -107,11 +108,14 @@ public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
|
|||
// Mantis 15983
|
||||
// A query principal do relatório possuía a coluna ROLOPERATIVO_ID assim duplicando os serviços quando existiam mais de um ROLOPERATIVO_ID por CORRIDA_ID.
|
||||
// Assim foi retirado a coluna ROLOPERATIVO_ID da query principal mas foi feito antes um mapa com a relação CORRIDA_ID x ROLOPERATIVO_ID(s)
|
||||
if (listaRoloperativoId != null) {
|
||||
for (Integer rolOperativoId : listaRoloperativoId) {
|
||||
ls.addAll(getValorByIndicador(corridaId, rolOperativoId, indicador, assentos, dataInicial, rutaId, horario, isServicoExtra,
|
||||
if (listaRoloperativoId != null && indicador != REC_KM) {
|
||||
for (Integer rolOperativoId2 : listaRoloperativoId) {
|
||||
ls.addAll(getValorByIndicador(corridaId, rolOperativoId2, indicador, assentos, dataInicial, rutaId, horario, isServicoExtra,
|
||||
diagramaAutoBusId,considerarApenasTarifa));
|
||||
}
|
||||
} else {
|
||||
ls.addAll(getValorByIndicador(corridaId, rolOperativoId, indicador, assentos, dataInicial, rutaId, horario, isServicoExtra,
|
||||
diagramaAutoBusId,considerarApenasTarifa));
|
||||
}
|
||||
|
||||
// Roda todos os dias do mes
|
||||
|
|
Loading…
Reference in New Issue