From 668e37096af496959ccbef3b9e6bbbf15b7698c0 Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Pinheiro <74972217+pixuimpou@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:01:45 -0300 Subject: [PATCH] Bilhetagem - Filtra valores distintos no modelo `aux_retorno_ordem_pagamento` (#231) * altera ip ressarcimento_db * add changelog * link PR * filtra valores distintos * add changelog * link pr --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- queries/models/controle_financeiro/CHANGELOG.md | 5 +++++ .../staging/aux_retorno_ordem_pagamento.sql | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/queries/models/controle_financeiro/CHANGELOG.md b/queries/models/controle_financeiro/CHANGELOG.md index ce325c9f..e4d1bc4f 100644 --- a/queries/models/controle_financeiro/CHANGELOG.md +++ b/queries/models/controle_financeiro/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog - controle_financeiro +## [1.0.1] - 2024-06-13 + +### Corrigido +- Filtra valores distintos no modelo `aux_retorno_ordem_pagamento.sql` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/231) + ## [1.0.0] - 2024-06-13 ### Adicionado diff --git a/queries/models/controle_financeiro/staging/aux_retorno_ordem_pagamento.sql b/queries/models/controle_financeiro/staging/aux_retorno_ordem_pagamento.sql index 8eecb62a..ef459e56 100644 --- a/queries/models/controle_financeiro/staging/aux_retorno_ordem_pagamento.sql +++ b/queries/models/controle_financeiro/staging/aux_retorno_ordem_pagamento.sql @@ -10,7 +10,7 @@ ) }} -SELECT +SELECT DISTINCT dataOrdem AS data_ordem, DATE(dataVencimento) AS data_pagamento, idConsorcio AS id_consorcio,