Record Class ProcessamentoDetalheResponse
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.processamento.ProcessamentoDetalheResponse
- Record Components:
id- identificadorrecebidoEm- data/hora de recebimentodataReferencia- data de referência informadahoraReferencia- hora de referência informadachecksumSha256- checksum SHA-256nomeArquivo- nome do arquivostatus- statusperiodoInicial- período inicial extraído do XLSperiodoFinal- período final extraído do XLSiniciadoEm- início do processamentoconcluidoEm- conclusão do processamentotempoMs- tempo de processamento em mserroMensagem- mensagem de erro, se houverregistrosFaturamento- quantidade total de registros de faturamento no uploadregistrosMovimento- quantidade total de registros de movimento no uploadfaturamentoInseridas- faturamento — linhas novas (INSERT puro no UPSERT)faturamentoAtualizadas- faturamento — linhas pré-existentes que mudaram (UPDATE in-place, id preservado)faturamentoInalteradas- faturamento — linhas inalteradas (filtradas por IS DISTINCT FROM, zero WAL)faturamentoRemovidas- faturamento — linhas removidas pelo DELETE seletivo (sumiram do upload)movimentoInseridas- movimento — linhas novas (INSERT puro no UPSERT)movimentoAtualizadas- movimento — linhas pré-existentes que mudaram (UPDATE in-place, id preservado)movimentoInalteradas- movimento — linhas inalteradas (filtradas por IS DISTINCT FROM, zero WAL)movimentoRemovidas- movimento — linhas removidas pelo DELETE seletivo (sumiram do upload)logArquivo- caminho do arquivo de log da execuçãodefesaMarcaAusenteQtd- defesa — chaves MARCA_AUSENTE distintas (placa+motivo) nesse uploaddefesaModeloAusenteQtd- defesa — chaves MODELO_AUSENTE distintasdefesaAnoInvalidoQtd- defesa — chaves ANO_INVALIDO distintasdefesaTipoFrotaAusenteQtd- defesa — chaves TIPO_FROTA_AUSENTE distintasdefesaPlacaMalformadaQtd- defesa — chaves PLACA_MALFORMADA distintasxlsLegado-truese ≥80% das linhas estavam sem cadastro veicular (XLS pré-2025-Q4)
public record ProcessamentoDetalheResponse(Long id, LocalDateTime recebidoEm, LocalDate dataReferencia, LocalTime horaReferencia, String checksumSha256, String nomeArquivo, String status, LocalDate periodoInicial, LocalDate periodoFinal, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, Long tempoMs, String erroMensagem, Integer registrosFaturamento, Integer registrosMovimento, Integer faturamentoInseridas, Integer faturamentoAtualizadas, Integer faturamentoInalteradas, Integer faturamentoRemovidas, Integer movimentoInseridas, Integer movimentoAtualizadas, Integer movimentoInalteradas, Integer movimentoRemovidas, String logArquivo, Integer defesaMarcaAusenteQtd, Integer defesaModeloAusenteQtd, Integer defesaAnoInvalidoQtd, Integer defesaTipoFrotaAusenteQtd, Integer defesaPlacaMalformadaQtd, Boolean xlsLegado)
extends Record
Detalhe de um processamento para API e tela de detalhe (metadados, contagens e métricas de
idempotência da spec 004; sem bytes do XLS).
-
Constructor Summary
ConstructorsConstructorDescriptionProcessamentoDetalheResponse(Long id, LocalDateTime recebidoEm, LocalDate dataReferencia, LocalTime horaReferencia, String checksumSha256, String nomeArquivo, String status, LocalDate periodoInicial, LocalDate periodoFinal, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, Long tempoMs, String erroMensagem, Integer registrosFaturamento, Integer registrosMovimento, Integer faturamentoInseridas, Integer faturamentoAtualizadas, Integer faturamentoInalteradas, Integer faturamentoRemovidas, Integer movimentoInseridas, Integer movimentoAtualizadas, Integer movimentoInalteradas, Integer movimentoRemovidas, String logArquivo, Integer defesaMarcaAusenteQtd, Integer defesaModeloAusenteQtd, Integer defesaAnoInvalidoQtd, Integer defesaTipoFrotaAusenteQtd, Integer defesaPlacaMalformadaQtd, Boolean xlsLegado) Creates an instance of aProcessamentoDetalheResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechecksumSha256record component.Returns the value of theconcluidoEmrecord component.Returns the value of thedataReferenciarecord component.Returns the value of thedefesaAnoInvalidoQtdrecord component.Returns the value of thedefesaMarcaAusenteQtdrecord component.Returns the value of thedefesaModeloAusenteQtdrecord component.Returns the value of thedefesaPlacaMalformadaQtdrecord component.Returns the value of thedefesaTipoFrotaAusenteQtdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerroMensagemrecord component.Returns the value of thefaturamentoAtualizadasrecord component.Returns the value of thefaturamentoInalteradasrecord component.Returns the value of thefaturamentoInseridasrecord component.Returns the value of thefaturamentoRemovidasrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehoraReferenciarecord component.id()Returns the value of theidrecord component.Returns the value of theiniciadoEmrecord component.Returns the value of thelogArquivorecord component.Returns the value of themovimentoAtualizadasrecord component.Returns the value of themovimentoInalteradasrecord component.Returns the value of themovimentoInseridasrecord component.Returns the value of themovimentoRemovidasrecord component.Returns the value of thenomeArquivorecord component.Returns the value of theperiodoFinalrecord component.Returns the value of theperiodoInicialrecord component.Returns the value of therecebidoEmrecord component.Returns the value of theregistrosFaturamentorecord component.Returns the value of theregistrosMovimentorecord component.status()Returns the value of thestatusrecord component.booleantruese há ao menos uma contagem de defesa > 0.booleantruese este processamento tem métricas de idempotência preenchidas (post-spec 004 V7).tempoMs()Returns the value of thetempoMsrecord component.final StringtoString()Returns a string representation of this record class.intSoma de eventos de WAL (inseridas + atualizadas + removidas) em ambas as tabelas.Returns the value of thexlsLegadorecord component.
-
Constructor Details
-
ProcessamentoDetalheResponse
public ProcessamentoDetalheResponse(Long id, LocalDateTime recebidoEm, LocalDate dataReferencia, LocalTime horaReferencia, String checksumSha256, String nomeArquivo, String status, LocalDate periodoInicial, LocalDate periodoFinal, LocalDateTime iniciadoEm, LocalDateTime concluidoEm, Long tempoMs, String erroMensagem, Integer registrosFaturamento, Integer registrosMovimento, Integer faturamentoInseridas, Integer faturamentoAtualizadas, Integer faturamentoInalteradas, Integer faturamentoRemovidas, Integer movimentoInseridas, Integer movimentoAtualizadas, Integer movimentoInalteradas, Integer movimentoRemovidas, String logArquivo, Integer defesaMarcaAusenteQtd, Integer defesaModeloAusenteQtd, Integer defesaAnoInvalidoQtd, Integer defesaTipoFrotaAusenteQtd, Integer defesaPlacaMalformadaQtd, Boolean xlsLegado) Creates an instance of aProcessamentoDetalheResponserecord class.- Parameters:
id- the value for theidrecord componentrecebidoEm- the value for therecebidoEmrecord componentdataReferencia- the value for thedataReferenciarecord componenthoraReferencia- the value for thehoraReferenciarecord componentchecksumSha256- the value for thechecksumSha256record componentnomeArquivo- the value for thenomeArquivorecord componentstatus- the value for thestatusrecord componentperiodoInicial- the value for theperiodoInicialrecord componentperiodoFinal- the value for theperiodoFinalrecord componentiniciadoEm- the value for theiniciadoEmrecord componentconcluidoEm- the value for theconcluidoEmrecord componenttempoMs- the value for thetempoMsrecord componenterroMensagem- the value for theerroMensagemrecord componentregistrosFaturamento- the value for theregistrosFaturamentorecord componentregistrosMovimento- the value for theregistrosMovimentorecord componentfaturamentoInseridas- the value for thefaturamentoInseridasrecord componentfaturamentoAtualizadas- the value for thefaturamentoAtualizadasrecord componentfaturamentoInalteradas- the value for thefaturamentoInalteradasrecord componentfaturamentoRemovidas- the value for thefaturamentoRemovidasrecord componentmovimentoInseridas- the value for themovimentoInseridasrecord componentmovimentoAtualizadas- the value for themovimentoAtualizadasrecord componentmovimentoInalteradas- the value for themovimentoInalteradasrecord componentmovimentoRemovidas- the value for themovimentoRemovidasrecord componentlogArquivo- the value for thelogArquivorecord componentdefesaMarcaAusenteQtd- the value for thedefesaMarcaAusenteQtdrecord componentdefesaModeloAusenteQtd- the value for thedefesaModeloAusenteQtdrecord componentdefesaAnoInvalidoQtd- the value for thedefesaAnoInvalidoQtdrecord componentdefesaTipoFrotaAusenteQtd- the value for thedefesaTipoFrotaAusenteQtdrecord componentdefesaPlacaMalformadaQtd- the value for thedefesaPlacaMalformadaQtdrecord componentxlsLegado- the value for thexlsLegadorecord component
-
-
Method Details
-
totalAlteracoes
public int totalAlteracoes()Soma de eventos de WAL (inseridas + atualizadas + removidas) em ambas as tabelas. Tratanullcomo 0 (registros pré-spec 004 não têm métricas). Zero significa upload idempotente — bit-a-bit idêntico ao estado anterior.- Returns:
- total de linhas inseridas, atualizadas e removidas em faturamento e movimento
-
temMetricas
public boolean temMetricas()truese este processamento tem métricas de idempotência preenchidas (post-spec 004 V7). Registros antigos retornamfalse— o template/UI evita exibir "sem alterações" para eles, já que a comparação é desconhecida.- Returns:
truese há ao menos uma métrica de idempotência preenchida
-
temDefesaQuePreocupa
public boolean temDefesaQuePreocupa()truese há ao menos uma contagem de defesa > 0. O card só renderiza nesse caso.- Returns:
truese alguma das 5 contagens é > 0.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
recebidoEm
Returns the value of therecebidoEmrecord component.- Returns:
- the value of the
recebidoEmrecord component
-
dataReferencia
Returns the value of thedataReferenciarecord component.- Returns:
- the value of the
dataReferenciarecord component
-
horaReferencia
Returns the value of thehoraReferenciarecord component.- Returns:
- the value of the
horaReferenciarecord component
-
checksumSha256
Returns the value of thechecksumSha256record component.- Returns:
- the value of the
checksumSha256record component
-
nomeArquivo
Returns the value of thenomeArquivorecord component.- Returns:
- the value of the
nomeArquivorecord component
-
status
-
periodoInicial
Returns the value of theperiodoInicialrecord component.- Returns:
- the value of the
periodoInicialrecord component
-
periodoFinal
Returns the value of theperiodoFinalrecord component.- Returns:
- the value of the
periodoFinalrecord component
-
iniciadoEm
Returns the value of theiniciadoEmrecord component.- Returns:
- the value of the
iniciadoEmrecord component
-
concluidoEm
Returns the value of theconcluidoEmrecord component.- Returns:
- the value of the
concluidoEmrecord component
-
tempoMs
-
erroMensagem
Returns the value of theerroMensagemrecord component.- Returns:
- the value of the
erroMensagemrecord component
-
registrosFaturamento
Returns the value of theregistrosFaturamentorecord component.- Returns:
- the value of the
registrosFaturamentorecord component
-
registrosMovimento
Returns the value of theregistrosMovimentorecord component.- Returns:
- the value of the
registrosMovimentorecord component
-
faturamentoInseridas
Returns the value of thefaturamentoInseridasrecord component.- Returns:
- the value of the
faturamentoInseridasrecord component
-
faturamentoAtualizadas
Returns the value of thefaturamentoAtualizadasrecord component.- Returns:
- the value of the
faturamentoAtualizadasrecord component
-
faturamentoInalteradas
Returns the value of thefaturamentoInalteradasrecord component.- Returns:
- the value of the
faturamentoInalteradasrecord component
-
faturamentoRemovidas
Returns the value of thefaturamentoRemovidasrecord component.- Returns:
- the value of the
faturamentoRemovidasrecord component
-
movimentoInseridas
Returns the value of themovimentoInseridasrecord component.- Returns:
- the value of the
movimentoInseridasrecord component
-
movimentoAtualizadas
Returns the value of themovimentoAtualizadasrecord component.- Returns:
- the value of the
movimentoAtualizadasrecord component
-
movimentoInalteradas
Returns the value of themovimentoInalteradasrecord component.- Returns:
- the value of the
movimentoInalteradasrecord component
-
movimentoRemovidas
Returns the value of themovimentoRemovidasrecord component.- Returns:
- the value of the
movimentoRemovidasrecord component
-
logArquivo
Returns the value of thelogArquivorecord component.- Returns:
- the value of the
logArquivorecord component
-
defesaMarcaAusenteQtd
Returns the value of thedefesaMarcaAusenteQtdrecord component.- Returns:
- the value of the
defesaMarcaAusenteQtdrecord component
-
defesaModeloAusenteQtd
Returns the value of thedefesaModeloAusenteQtdrecord component.- Returns:
- the value of the
defesaModeloAusenteQtdrecord component
-
defesaAnoInvalidoQtd
Returns the value of thedefesaAnoInvalidoQtdrecord component.- Returns:
- the value of the
defesaAnoInvalidoQtdrecord component
-
defesaTipoFrotaAusenteQtd
Returns the value of thedefesaTipoFrotaAusenteQtdrecord component.- Returns:
- the value of the
defesaTipoFrotaAusenteQtdrecord component
-
defesaPlacaMalformadaQtd
Returns the value of thedefesaPlacaMalformadaQtdrecord component.- Returns:
- the value of the
defesaPlacaMalformadaQtdrecord component
-
xlsLegado
-