fix: 套餐使用租户查询参数类型推断

This commit is contained in:
2025-12-15 16:51:53 +08:00
parent cbce52c8a6
commit e6a66b109a

View File

@@ -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 || '%')