This commit is contained in:
xiaowei.song 2024-06-21 15:10:40 +08:00
commit 99ae98af20

View File

@ -3,6 +3,7 @@ using SqlSugar;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using ZR.Model;
using ZR.Model.MES.pro;
@ -222,8 +223,10 @@ namespace ZR.Service.mes.qc
{
try
{
string[] Machines = new string[] {"0","1","2","3" };
return Context.Queryable<WmPackingrecord>()
.Where(it => it.WorkOrderNum == workOrderId)
.Where(it => Machines.Contains(it.Machine))
.OrderBy(it => it.Id)
.Count();
}