From 810bbf18aeb1e04766ec3f14cccdea0c71099e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Fri, 21 Jun 2024 12:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Service/mes/qc/CommonFQCService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ZR.Service/mes/qc/CommonFQCService.cs b/ZR.Service/mes/qc/CommonFQCService.cs index 7fcccd8e..d4c9b6d7 100644 --- a/ZR.Service/mes/qc/CommonFQCService.cs +++ b/ZR.Service/mes/qc/CommonFQCService.cs @@ -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() .Where(it => it.WorkOrderNum == workOrderId) + .Where(it => Machines.Contains(it.Machine)) .OrderBy(it => it.Id) .Count(); }