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