From 39fd0e24368707bd1a977e8158845013e7e12a04 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Tue, 24 May 2022 16:50:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=AE=AF=E5=BD=95?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E6=9F=A5=E8=AF=A2=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AddressBook/AddressBookService.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs index 4a814bffb..72b0e926f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs @@ -82,11 +82,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration var strSql = new StringBuilder(); strSql.Append("SELECT "); strSql.Append(fieldSql); - strSql.Append(" FROM AddressBook t "); + strSql.Append(" FROM AddressBook t where 1=1 "); var data = LoginUserInfo.Get(); if (!data.isSystem) { - strSql.Append($" where ASaverId='{data.userId}' or AIsShare=1"); + strSql.Append($" and ASaverId='{data.userId}' or AIsShare=1"); + } + var queryParam = queryJson.ToJObject(); + if (!queryParam["keyword"].IsEmpty()) + { + strSql.Append($" AND t.AName Like '%{queryParam["keyword"].ToString()}%' "); } return this.BaseRepository().FindList(strSql.ToString(), pagination); }