包装修改
This commit is contained in:
@@ -3,6 +3,7 @@ using SqlSugar;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using ZR.Model;
|
using ZR.Model;
|
||||||
using ZR.Model.MES.pro;
|
using ZR.Model.MES.pro;
|
||||||
@@ -222,8 +223,10 @@ namespace ZR.Service.mes.qc
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
string[] Machines = new string[] {"0","1","2","3" };
|
||||||
return Context.Queryable<WmPackingrecord>()
|
return Context.Queryable<WmPackingrecord>()
|
||||||
.Where(it => it.WorkOrderNum == workOrderId)
|
.Where(it => it.WorkOrderNum == workOrderId)
|
||||||
|
.Where(it => Machines.Contains(it.Machine))
|
||||||
.OrderBy(it => it.Id)
|
.OrderBy(it => it.Id)
|
||||||
.Count();
|
.Count();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user