Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.csZobrazit soubor
@@ -1,4 +1,5 @@
using Dapper;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
@@ -395,6 +396,16 @@ SELECT ruserid from [dbo].[LR_OA_NewsShouldRead] where newsid='{news.F_NewsId}'
var userId = userinfo.userId;
var deptId = userinfo.departmentId;
var postIds = userinfo.postIds;
if (userinfo.Description == "教师")
{
var empinfo = this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(x => x.EmpNo == userinfo.account);
if (empinfo != null && empinfo.IsInActiveStatus == "2")
{
return new List<NewsEntity>();
}
}
var strSql = new StringBuilder();
strSql.Append("SELECT t.*,r.RNewsId,r.RTime,d.F_FullName FROM LR_OA_News t ");
strSql.Append(" left join LR_OA_NewsRead r on t.F_NewsId = r.NewsId and r.RUserId=@userId ");
+ 18- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/MessageRind/MessageRindService.csZobrazit soubor