瀏覽代碼

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

西昌缴费二期
zhangli 2 年之前
父節點
當前提交
39fd0e2436
共有 1 個檔案被更改,包括 7 行新增2 行删除
  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 查看文件

@@ -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…
取消
儲存