From cbce52c8a660f0b1956a2f713c87424ae09f571a Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Mon, 15 Dec 2025 16:38:43 +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=A2keyword=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GetTenantPackageTenantsQueryHandler.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs index edc4e7c..d14aed2 100644 --- a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs +++ b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs @@ -89,10 +89,10 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx where t."DeletedAt" is null and ( @keyword is null - or t."Name" ilike ('%' || @keyword || '%') - or t."Code" ilike ('%' || @keyword || '%') - or coalesce(t."ContactName", '') ilike ('%' || @keyword || '%') - or coalesce(t."ContactPhone", '') ilike ('%' || @keyword || '%') + or t."Name" ilike ('%' || @keyword::text || '%') + or t."Code" ilike ('%' || @keyword::text || '%') + or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%') + or coalesce(t."ContactPhone", '') ilike ('%' || @keyword::text || '%') ) and exists ( select 1 @@ -135,10 +135,10 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx where t."DeletedAt" is null and ( @keyword is null - or t."Name" ilike ('%' || @keyword || '%') - or t."Code" ilike ('%' || @keyword || '%') - or coalesce(t."ContactName", '') ilike ('%' || @keyword || '%') - or coalesce(t."ContactPhone", '') ilike ('%' || @keyword || '%') + or t."Name" ilike ('%' || @keyword::text || '%') + or t."Code" ilike ('%' || @keyword::text || '%') + or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%') + or coalesce(t."ContactPhone", '') ilike ('%' || @keyword::text || '%') ) order by t."CreatedAt" desc offset @offset