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); }