GP12触摸屏,产线维修件优化
This commit is contained in:
@@ -1557,6 +1557,23 @@ namespace ZR.Service.mes.qc
|
||||
boardData.RealOneTimeWarehouseCount -= realOneTimeWarehouseCount2;
|
||||
}
|
||||
|
||||
//TODO 20241227 产线维修件
|
||||
boardData.StatisticsProductMaintenanceQualifiedTotal = Context
|
||||
.Queryable<ProWorkorder_v2>()
|
||||
.WhereIF(
|
||||
!string.IsNullOrEmpty(query.Partnumber),
|
||||
it => it.FinishedPartNumber == query.Partnumber
|
||||
)
|
||||
.WhereIF(
|
||||
query.StartTime != null,
|
||||
it => it.CreatedTime >= query.StartTime.Value.ToLocalTime()
|
||||
)
|
||||
.WhereIF(
|
||||
query.EndTime != null,
|
||||
it => it.CreatedTime <= query.EndTime.Value.ToLocalTime()
|
||||
)
|
||||
.Where(it => it.Remark1.Contains("维修"))
|
||||
.Sum(it => it.PreviousNumber);
|
||||
return boardData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user