|
|
@ -300,7 +300,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
{ |
|
|
|
Expression<Func< pricetasklog, teamitems, TaskInfoDto >> select = (a, b) => new TaskInfoDto |
|
|
|
{ |
|
|
|
IsPass = b.IsQualified==true, |
|
|
|
IsPass = b.IsQualified, |
|
|
|
TeamId = b.TeamId, |
|
|
|
TeamUserId = b.UserId, |
|
|
|
TeamDate = b.CreateTime, |
|
|
@ -337,12 +337,13 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
{ |
|
|
|
AuditCount = list.Count(c => c.State == PriceTaskState.已比价), |
|
|
|
OverCount = list.Count(c => c.State == PriceTaskState.比价完成), |
|
|
|
PassCount = list.Count(c => c.IsPass), |
|
|
|
PublishCount = list.Count |
|
|
|
PassCount = list.Count(c => c.IsPass==true), |
|
|
|
PublishCount = list.Count, |
|
|
|
FailedCount = list.Count(c => c.IsPass==false), |
|
|
|
}; |
|
|
|
|
|
|
|
if (list.Count > 0) { |
|
|
|
model.PassRate = Math.Round(((decimal)model.PassCount / list.Count) * 100, 2); |
|
|
|
if (list.Count > 0) { |
|
|
|
model.PassRate = Math.Round(((decimal)model.PassCount / list.Count) * 100, 2); |
|
|
|
} |
|
|
|
return model; |
|
|
|
} |
|
|
|