From 088f13d9a1e734d00e132199befbcbc45b8cc4c6 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 25 Mar 2026 15:34:18 -0300 Subject: [PATCH] added companie filter in flash querie --- src/flash/flash.module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flash/flash.module.ts b/src/flash/flash.module.ts index c042f82..9936520 100644 --- a/src/flash/flash.module.ts +++ b/src/flash/flash.module.ts @@ -99,6 +99,7 @@ inner join mboard.tb_empresa_segmento tes where 1=1 and tvf.vlrvendaacumulada > 0 and tvf.dtavda = TO_DATE(${args.data_venda}, 'YYYY-MM-DD') + and (tvf.nroempresa in (${args.ctx_user_companies})) group by rollup(canalapp, nomeempresaapp) order by grouping(canalapp) desc, grouping(nomeempresaapp) desc`, };