|
|
@@ -39,7 +39,7 @@ namespace Learun.Application.Organization |
|
|
|
strSql.Append("SELECT "); |
|
|
|
strSql.Append(fieldSql); |
|
|
|
strSql.Append(" FROM LR_Base_User t "); |
|
|
|
strSql.Append(" WHERE t.F_Account = @account AND t.F_DeleteMark = 0 "); |
|
|
|
strSql.Append(" WHERE (t.F_Account = @account or t.N_Account=@account) AND t.F_DeleteMark = 0 "); |
|
|
|
return this.BaseRepository().FindEntity<UserEntity>(strSql.ToString(), new { account = account }); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -206,7 +206,7 @@ namespace Learun.Application.Organization |
|
|
|
if (!string.IsNullOrEmpty(keyword)) |
|
|
|
{ |
|
|
|
keyword = "%" + keyword + "%"; |
|
|
|
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.F_Mobile like @keyword ) "); |
|
|
|
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.N_Account like @keyword or t.F_Mobile like @keyword ) "); |
|
|
|
} |
|
|
|
|
|
|
|
return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword }, pagination); |
|
|
|