Merge branch 'master' of https://gitee.com/doan-tech/zhuangpei-mesbackend
This commit is contained in:
commit
3b2b830fd1
@ -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; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
// 七日变更计划
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user