From 02ce1fdf01a3f976dd7dc0e0dfc991fd1e7e543b Mon Sep 17 00:00:00 2001 From: tkinaba Date: Thu, 26 Mar 2026 17:43:50 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20tentativa=20de=20resolver=20a=20lentid?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removendo o is null --- src/products/products.module.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/products/products.module.ts b/src/products/products.module.ts index 286a244..9db34ed 100644 --- a/src/products/products.module.ts +++ b/src/products/products.module.ts @@ -736,9 +736,8 @@ where 1=1 --and pemp.SEQPRODUTO = 136011 --and pemp.nroempresa = 202 and md.nrodivisao in (2,4) -and (${args.codproduto} is null or pemp.seqproduto = ${args.codproduto}) -and (me.nroempresa in (${args.ctx_user_companies})) - +and pemp.seqproduto = ${args.codproduto} +and me.nroempresa in (${args.ctx_user_companies}) and pes2.qtdembalagem = (select nvl(max(pes3.qtdembalagem), 1) from mrl_prodempseg pes3 where pes3.nroempresa = pes.nroempresa