Commit 61e23788 authored by 黄奎's avatar 黄奎

页面修改

parent 0afbebc7
......@@ -883,7 +883,7 @@ namespace Edu.Module.Exam
}
foreach (var item in bankList)
{
var tempList = stuExamList?.Where(qitem => qitem.BankId == item.BankId)?.OrderByDescending(qitem => qitem.Score)?.ToList();
var tempList = stuExamList?.Where(qitem => qitem.BankId == item.BankId && !string.IsNullOrEmpty(Common.ConvertHelper.FormatTime(qitem.EndTime)))?.OrderByDescending(qitem => qitem.Score)?.ToList();
string LeastTime = "";//最短时间
decimal HighestScore = 0;//最高分
string MyUseTime = "";//用时
......@@ -907,11 +907,12 @@ namespace Edu.Module.Exam
}
MyTimes = tempList?.Where(qitem => qitem.StudentId == query.StudentId)?.Count() ?? 0;
}
var obj = new
{
item.BankId,
item.BankName,
JoinNum = tempList?.Count(),
JoinNum = tempList?.GroupBy(qitem => qitem.StudentId)?.Count(),
LeastTime,
HighestScore,
MyUseTime,
......
......@@ -93,6 +93,10 @@ WHERE 1=1
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Student_Practice_Extend.Category), query.QCategoryIds);
}
if (query.StartId > 0)
{
builder.AppendFormat(" AND A.{0}>{1} ", nameof(RB_Student_Practice_Extend.Id), query.StartId);
}
}
return GetPage<RB_Student_Practice_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList();
}
......
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