1
This commit is contained in:
@@ -166,7 +166,7 @@ namespace DOAN.Service.MES.SmartScreen.Product
|
||||
if (groupArray.Length > 0)
|
||||
{
|
||||
var GroupresultList = Context.Queryable<ProWorkorder>()
|
||||
.LeftJoin<ProReportwork>((w, r) => w.Workorder == r.FkWorkorder)
|
||||
.LeftJoin<ProReportwork01>((w, r) => w.Workorder == r.Workorder)
|
||||
.Where((w, r) => groupArray.Contains(w.GroupCode))
|
||||
.Where((w, r) => w.WorkorderDate >= firstDayOfMonth && w.WorkorderDate <= lastDayOfMonth)
|
||||
.GroupBy((w, r) => new { w.GroupCode, w.WorkorderDate })
|
||||
@@ -174,7 +174,7 @@ namespace DOAN.Service.MES.SmartScreen.Product
|
||||
{
|
||||
groupCode = w.GroupCode,
|
||||
Name = w.WorkorderDate.Value.ToString("MM-dd"),
|
||||
Value = SqlFunc.AggregateSum(r.FinishedNum ?? 0)
|
||||
Value = SqlFunc.AggregateSum(r.FinishNum ?? 0)
|
||||
}).ToList();
|
||||
foreach (var group in groupArray)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user