This commit is contained in:
赵正易 2024-11-18 15:44:06 +08:00
commit 3b2b830fd1
2 changed files with 13 additions and 3 deletions

View File

@ -77,5 +77,15 @@ namespace DOAN.Model.MES.bigscreen.Dto
/// </summary>
public int SevenDaysPriorPlanQuantity { get; set; }
}
/// <summary>
/// 今日班组产量进度
/// </summary>
public class TodayGroupProductionProgress
{
public string GroupCode { get; set; }
}
}

View File

@ -19,12 +19,12 @@ namespace DOAN.Service.MES.bigScreen
//今日班组
productBigScreen.TodayGroupQuantity= Context.Queryable<ProWorkorder>().Where(it => it.WorkorderDate == DateTime.Today)
.GroupBy(it => it.GroupCode).Count();
.GroupBy(it => it.GroupCode).Select(it=>it.GroupCode).ToArray().Length;
//今天产线
productBigScreen.TodayLineQuantity=Context.Queryable<ProWorkorder>().Where(it => it.WorkorderDate == DateTime.Today)
.GroupBy(it => it.LineCode).Count();
.GroupBy(it => it.LineCode).Select(it=>it.LineCode).ToArray().Length;
//今日计划产量
@ -44,7 +44,7 @@ namespace DOAN.Service.MES.bigScreen
productBigScreen.TodayProductTypeQuantity = Context.Queryable<ProWorkorder>()
.Where(it => it.WorkorderDate == DateTime.Today)
.GroupBy(it => it.ProductionCode)
.Count();
.Select(it=>it.ProductionCode).ToArray().Length;
// 七日变更计划