|
|
|
@ -1919,6 +1919,20 @@ ORDER BY {filter.orderBy}"; |
|
|
|
|
.Where(it => ids.Contains(it.Id)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
#region 补充逻辑,只学习,未进入到考试页面 |
|
|
|
|
var examId = await Db.Queryable<Ghre_StudyRecord>() |
|
|
|
|
.Where(x => ids.Contains(x.Id) && x.ExamId != null) |
|
|
|
|
.Select(x => x.ExamId).Distinct().ToListAsync(); |
|
|
|
|
staffIds = await Db.Queryable<Ghre_StudyRecord>() |
|
|
|
|
.Where(x => ids.Contains(x.Id) && x.StaffId != null) |
|
|
|
|
.Select(x => x.StaffId).Distinct().ToListAsync(); |
|
|
|
|
|
|
|
|
|
await Db.Updateable<Ghre_ExamStaff>() |
|
|
|
|
.SetColumns(it => new Ghre_ExamStaff() { IsEnable = 0 }, true) |
|
|
|
|
.Where(it => staffIds.Contains(it.StaffId) && it.StaffId != null && it.ExamId != null && examIds.Contains(it.ExamId)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|