Ver a proveniência

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

西昌缴费二期
zhangli há 2 anos
ascendente
cometimento
39fd0e2436
1 ficheiros alterados com 7 adições e 2 eliminações
  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 Ver ficheiro

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


Carregando…
Cancelar
Guardar