This commit is contained in:
@@ -99,6 +99,7 @@ inner join mboard.tb_empresa_segmento tes
|
|||||||
where 1=1
|
where 1=1
|
||||||
and tvf.vlrvendaacumulada > 0
|
and tvf.vlrvendaacumulada > 0
|
||||||
and tvf.dtavda = TO_DATE(${args.data_venda}, 'YYYY-MM-DD')
|
and tvf.dtavda = TO_DATE(${args.data_venda}, 'YYYY-MM-DD')
|
||||||
|
and (tvf.nroempresa in (${args.ctx_user_companies}))
|
||||||
group by rollup(canalapp, nomeempresaapp)
|
group by rollup(canalapp, nomeempresaapp)
|
||||||
order by grouping(canalapp) desc, grouping(nomeempresaapp) desc`,
|
order by grouping(canalapp) desc, grouping(nomeempresaapp) desc`,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user