Browse Source

修复通讯录关键字查询不生效问题

西昌缴费二期
zhangli 2 years ago
parent
commit
39fd0e2436
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs

+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/AddressBook/AddressBookService.cs View File

@@ -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<AddressBookEntity>(strSql.ToString(), pagination);
}


Loading…
Cancel
Save