|
|
@@ -71,6 +71,14 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop |
|
|
|
try |
|
|
|
{ |
|
|
|
var userInfo = LoginUserInfo.Get(); |
|
|
|
if (userInfo.Description == "教师") |
|
|
|
{ |
|
|
|
var empinfo = this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(x => x.EmpNo == userInfo.account); |
|
|
|
if (empinfo != null && empinfo.IsInActiveStatus == "2") |
|
|
|
{ |
|
|
|
return new List<MessageRemindEntity>(); |
|
|
|
} |
|
|
|
} |
|
|
|
return this.BaseRepository().FindList<MessageRemindEntity>(x => x.ReadSigns == false && x.ReceiptId == userInfo.userId); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -95,7 +103,14 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop |
|
|
|
try |
|
|
|
{ |
|
|
|
var userInfo = LoginUserInfo.Get(); |
|
|
|
|
|
|
|
if (userInfo.Description == "教师") |
|
|
|
{ |
|
|
|
var empinfo = this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(x => x.EmpNo == userInfo.account); |
|
|
|
if (empinfo != null && empinfo.IsInActiveStatus == "2") |
|
|
|
{ |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
//string dbname = this.BaseRepository("CollegeMIS").getDbConnection().Database; |
|
|
|
|
|
|
|
|
|
|
@@ -103,7 +118,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop |
|
|
|
string sql = "select count(1) from MessageRemind "; |
|
|
|
sql += $" where ReadSigns=0 "; |
|
|
|
sql += $" and ReceiptId='{userInfo.userId}'"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var obj = this.BaseRepository().FindObject(sql); |
|
|
|
if (obj != null && Convert.ToInt32(obj) > 0) |
|
|
@@ -287,7 +302,7 @@ where t.IsRead = 0 and [Description] = '学生' and a.[state] = 7 and t.Account |
|
|
|
//获取对应的维修数据,判断是否已处理 |
|
|
|
var model = this.BaseRepository().FindEntity<MessageRemindEntity>(keyValue); |
|
|
|
string status = ""; |
|
|
|
if (model.TheTitle=="维修通知") |
|
|
|
if (model.TheTitle == "维修通知") |
|
|
|
{ |
|
|
|
if (model.ConnectionUrl.Contains("RepairReportStudent")) |
|
|
|
{ |
|
|
|