|
|
@ -308,7 +308,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
list.ForEach(item => { |
|
|
|
|
|
|
|
item.State = (int)TeamItemState.精选; |
|
|
|
item.State = (int)TeamItemState.已比价; |
|
|
|
//完成日期
|
|
|
|
item.UpdateDate = DateTime.Now; |
|
|
|
|
|
|
@ -371,13 +371,14 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
var list = await q.Where(where).ToListAsync(); |
|
|
|
|
|
|
|
list = list.Where(c => !string.IsNullOrEmpty(c.Id)).ToList(); |
|
|
|
|
|
|
|
//list = list.Where(c => !string.IsNullOrEmpty(c.Id)).ToList();
|
|
|
|
|
|
|
|
var model = new PriceTaskInfo() |
|
|
|
{ |
|
|
|
AuditCount = list.Count(c => c.State == PriceTaskState.已比价), |
|
|
|
OverCount = list.Count(c => c.State == PriceTaskState.比价完成), |
|
|
|
PassCount = list.Count(c => c.IsPass==true), |
|
|
|
PassCount = list.Count(c => c.IsPass==true&& !string.IsNullOrEmpty(c.Id)), |
|
|
|
PublishCount = list.Count, |
|
|
|
FailedCount = list.Count(c => c.IsPass==false), |
|
|
|
NeedWorkCount = list.Count(c => c.State != PriceTaskState.比价完成) |
|
|
@ -421,8 +422,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
|
|
|
|
var list = q.Where(where).ToList(); |
|
|
|
|
|
|
|
list = list.Where(c => !string.IsNullOrEmpty(c.Id)).ToList(); |
|
|
|
|
|
|
|
int waitOver = list.Count(c => c.TeamItemState == TeamItemState.已发布比价 && !string.IsNullOrEmpty(c.PriceTaskUserId) && c.State != PriceTaskState.比价完成); |
|
|
|
|
|
|
|
int waitCheck = list.Count(c => c.TeamItemState == TeamItemState.已发布比价 && string.IsNullOrEmpty(c.PriceTaskUserId)); |
|
|
@ -461,14 +461,13 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
list = q3.ToList(); |
|
|
|
|
|
|
|
var passList = list.Where(c => c.IsPass == true).ToList(); |
|
|
|
var overList = list.Where(c => c.State == PriceTaskState.比价完成).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
var jtInfo = new PriceTaskInfo() |
|
|
|
{ |
|
|
|
AuditCount = list.Count(c => c.State == PriceTaskState.已比价), |
|
|
|
OverCount = list.Count(c => c.State == PriceTaskState.比价完成), |
|
|
|
PassCount = list.Count(c => c.IsPass == true), |
|
|
|
PassCount = list.Count(c => c.IsPass == true && !string.IsNullOrEmpty(c.Id)), |
|
|
|
PublishCount = list.Count, |
|
|
|
FailedCount = list.Count(c => c.IsPass == false), |
|
|
|
NeedWorkCount = list.Count(c => c.State != PriceTaskState.比价完成) |
|
|
|