Commit 3f21cea3 authored by 黄奎's avatar 黄奎

上课记录查询修改

parent ddb2d729
...@@ -2420,6 +2420,7 @@ namespace Edu.Module.Course ...@@ -2420,6 +2420,7 @@ namespace Edu.Module.Course
TotalNum += tempTotalNum; TotalNum += tempTotalNum;
var checkList = checkLogList.Where(x => x.CheckStatus == 0 && x.ClassTimeId == subItem.ClassTimeId).ToList(); var checkList = checkLogList.Where(x => x.CheckStatus == 0 && x.ClassTimeId == subItem.ClassTimeId).ToList();
var noCheckList = checkLogList.Where(x => x.CheckStatus == 1 && x.ClassTimeId == subItem.ClassTimeId).ToList(); var noCheckList = checkLogList.Where(x => x.CheckStatus == 1 && x.ClassTimeId == subItem.ClassTimeId).ToList();
var askforleaveList = checkLogList.Where(x => x.CheckStatus == 2 && x.ClassTimeId == subItem.ClassTimeId).ToList();
NoCheckNum += noCheckList.Count(); NoCheckNum += noCheckList.Count();
var obj = new var obj = new
{ {
...@@ -2429,6 +2430,8 @@ namespace Edu.Module.Course ...@@ -2429,6 +2430,8 @@ namespace Edu.Module.Course
CheckList = checkList.Select(qitem => new { qitem.GuestName }), CheckList = checkList.Select(qitem => new { qitem.GuestName }),
NoCheckNum = noCheckList.Count(), NoCheckNum = noCheckList.Count(),
NoCheckList = noCheckList.Select(qitem => new { qitem.GuestName }), NoCheckList = noCheckList.Select(qitem => new { qitem.GuestName }),
AskforleaveNum = askforleaveList.Count(),
AskforleaveList = askforleaveList.Select(qitem => new { qitem.GuestName }),
}; };
time.Add(obj); time.Add(obj);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment