From c5df5a51fde3dd7eee17d346739fb5d77b3d1b2f Mon Sep 17 00:00:00 2001 From: yubaolee Date: Wed, 14 May 2025 10:46:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=97=E5=85=B8=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=AB=98=E7=BA=A7=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/Category/CategoryApp.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenAuth.App/Category/CategoryApp.cs b/OpenAuth.App/Category/CategoryApp.cs index 7368b5b8..9ff2d790 100644 --- a/OpenAuth.App/Category/CategoryApp.cs +++ b/OpenAuth.App/Category/CategoryApp.cs @@ -51,6 +51,11 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key) || u.Name.Contains(request.key)); } + if (!string.IsNullOrEmpty(request.sqlWhere)) + { + objs = objs.Where(request.sqlWhere); + } + var propertyStr = string.Join(',', columnFields.Select(u =>u.ColumnName)); result.columnFields = columnFields; result.data = objs.OrderBy(u => u.DtCode)