|
|
@@ -178,7 +178,7 @@ namespace Learun.Application.Organization |
|
|
|
/// <param name="keyword"></param> |
|
|
|
/// <param name="tp">类型 0学生 1 教师</param> |
|
|
|
/// <returns></returns> |
|
|
|
public IEnumerable<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp) |
|
|
|
public IEnumerable<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
@@ -208,8 +208,12 @@ namespace Learun.Application.Organization |
|
|
|
keyword = "%" + keyword + "%"; |
|
|
|
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.F_Mobile like @keyword ) "); |
|
|
|
} |
|
|
|
|
|
|
|
return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword }, pagination); |
|
|
|
if (!string.IsNullOrEmpty(F_EnabledMark)) |
|
|
|
{ |
|
|
|
strSql.Append(" AND t.F_EnabledMark=@F_EnabledMark "); |
|
|
|
} |
|
|
|
|
|
|
|
return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword, F_EnabledMark }, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|