|
@@ -26,12 +26,17 @@ namespace Learun.Application.OA |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
var user = LoginUserInfo.Get(); |
|
|
var strSql = new StringBuilder(); |
|
|
var strSql = new StringBuilder(); |
|
|
strSql.Append("SELECT * FROM LR_OA_News t WHERE t.F_TypeId = 2 and F_Status<>'-1' and F_DeleteMark=0"); |
|
|
strSql.Append("SELECT * FROM LR_OA_News t WHERE t.F_TypeId = 2 and F_Status<>'-1' and F_DeleteMark=0"); |
|
|
if (!string.IsNullOrEmpty(keyword)) |
|
|
if (!string.IsNullOrEmpty(keyword)) |
|
|
{ |
|
|
{ |
|
|
strSql.Append(" AND F_FullHead like @keyword"); |
|
|
strSql.Append(" AND F_FullHead like @keyword"); |
|
|
} |
|
|
} |
|
|
|
|
|
if (user.Description != "超级管理员") |
|
|
|
|
|
{ |
|
|
|
|
|
strSql.Append(" AND F_CreateUserName ='" + user.realName + "'"); |
|
|
|
|
|
} |
|
|
return this.BaseRepository().FindList<NewsEntity>(strSql.ToString(), new { keyword = "%" + keyword + "%" }, pagination); |
|
|
return this.BaseRepository().FindList<NewsEntity>(strSql.ToString(), new { keyword = "%" + keyword + "%" }, pagination); |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
@@ -197,7 +202,7 @@ namespace Learun.Application.OA |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
#endregion |
|
|
#region 扩展数据 |
|
|
#region 扩展数据 |
|
|
|
|
|
|
|
|