Commit 67213dd1 authored by 黄奎's avatar 黄奎

页面修改

parent e4ceb88f
......@@ -313,10 +313,20 @@ namespace Edu.Module.Duty
item.JoinNum = tempList?.Count()??0;
item.VisitorList = tempList?.ToList() ?? new List<RB_Visitor_Reserve_Extend>();
int OrderCount = 0;
int failCount = 0;
foreach (var subItem in tempList)
{
OrderCount += stuOrderList.Where(qitem => qitem.Student_Id == subItem.Visitor_Id)?.Count() ?? 0;
if (!(stuOrderList.Where(qitem => qitem.Student_Id == subItem.Visitor_Id)?.Count() > 0))
{
failCount++;
}
if ((stuOrderList.Where(qitem => qitem.Student_Id == subItem.Visitor_Id)?.Count() > 0))
{
OrderCount++;
}
}
item.FailCount = failCount;
item.OrderCount = OrderCount;
if (item.OrderCount > 0)
{
......@@ -326,7 +336,6 @@ namespace Edu.Module.Duty
{
item.ConversionRates = 0;
}
item.FailCount = item.JoinNum - item.OrderCount;
}
}
return list;
......
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