From 1813dbb06ddb5ce3645bff5a360dccbb90f5d07c Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Fri, 13 Mar 2026 11:01:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(MES):=20=E6=B7=BB=E5=8A=A0=E6=8C=89?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E4=BB=A3=E7=A0=81=E7=AD=9B=E9=80=89=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在ProWorkorderQueryService中增加对ProductionCode的筛选条件,当参数中的ProductionCode不为空时,可以按生产代码过滤工单 --- DOAN.Service/MES/Product/ProWorkorderQueryService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DOAN.Service/MES/Product/ProWorkorderQueryService.cs b/DOAN.Service/MES/Product/ProWorkorderQueryService.cs index dfe34e8..36641a4 100644 --- a/DOAN.Service/MES/Product/ProWorkorderQueryService.cs +++ b/DOAN.Service/MES/Product/ProWorkorderQueryService.cs @@ -269,6 +269,7 @@ namespace DOAN.Service.MES.product { var result = Context .Queryable() + .WhereIF(!string.IsNullOrEmpty(parm.ProductionCode),it=> it.productionCode == parm.ProductionCode) .Where(it => (it.ProductNum - it.ShipmentNum) > 0) .OrderByDescending(it => it.CreatedTime) .Select(it => new ProWorkorderStockDto