From 3a02f705b9f7001b232cccbacb5bf4ff7ee5bf90 Mon Sep 17 00:00:00 2001 From: "Claudio.Junior" Date: Tue, 28 May 2024 09:51:40 -0400 Subject: [PATCH] Voltei query anterior, apos ter solucionado o problema da lentidao na consulta do bd --- www/html/aplicativo/cadastros/pesquisa/pesquisaFuncoes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/html/aplicativo/cadastros/pesquisa/pesquisaFuncoes.php b/www/html/aplicativo/cadastros/pesquisa/pesquisaFuncoes.php index 9a273d521..763f6d6d9 100644 --- a/www/html/aplicativo/cadastros/pesquisa/pesquisaFuncoes.php +++ b/www/html/aplicativo/cadastros/pesquisa/pesquisaFuncoes.php @@ -24,7 +24,7 @@ function GetPesquisaRel($db, $plId, $matricula = null) INNER JOIN pbx_grupo_usuario d ON d.user_id = c.id INNER JOIN pbx_fila_grupos e ON e.gp_id = d.gp_id WHERE EXISTS(SELECT '' FROM pbx_pesquisa_movimento WHERE pl_id = a.pl_id AND e.id = id_dac) - %s", $matricula ? "and c.matricula = '$matricula'" : ""); + %s", $matricula ? " and c.matricula = '$matricula'" : ""); $query .= " ORDER BY a.data_reg DESC"; //$query .= " ORDER BY b.pp_nome"; $result = pg_query($db, $query);