From e6a66b109a039062ea75e0bd303ac835681cf2e7 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Mon, 15 Dec 2025 16:51:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A5=97=E9=A4=90=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=A7=9F=E6=88=B7=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8E=A8=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs index d14aed2..95b730b 100644 --- a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs +++ b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs @@ -88,7 +88,7 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx from public.tenants t where t."DeletedAt" is null and ( - @keyword is null + @keyword::text is null or t."Name" ilike ('%' || @keyword::text || '%') or t."Code" ilike ('%' || @keyword::text || '%') or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%') @@ -134,7 +134,7 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx ) s on true where t."DeletedAt" is null and ( - @keyword is null + @keyword::text is null or t."Name" ilike ('%' || @keyword::text || '%') or t."Code" ilike ('%' || @keyword::text || '%') or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%')