From dd4dc59bf92edb63985909cbd166229bc85eae85 Mon Sep 17 00:00:00 2001 From: gcw_MV9p2JJN Date: Tue, 30 Dec 2025 08:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AF=A6=E6=83=85,=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E5=B7=A5=E5=BA=8F=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=E6=B5=81=E7=A8=8B=E4=BF=A1=E6=81=AF=EF=BC=8C=E9=85=8D?= =?UTF-8?q?=E6=96=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Process/ProcessOperationService.cs | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/MDM/Services/Process/ProcessOperationService.cs b/MDM/Services/Process/ProcessOperationService.cs index 171be3f..09e2ba5 100644 --- a/MDM/Services/Process/ProcessOperationService.cs +++ b/MDM/Services/Process/ProcessOperationService.cs @@ -106,20 +106,19 @@ namespace MDM.Services.Process OperationRecipeParameters = SqlFunc.Subqueryable() .LeftJoin((refpr, ver) => refpr.RecipeCode == ver.RecipeCode) .LeftJoin((refpr, ver, param) => ver.RecipeCode == param.RecipeCode && ver.Version == param.Version) - .Where((refpr, ver, param) => refpr.FkRoutingCode == it.FkRoutingCode && refpr.FkOperationCode == it.OperationCode) - - .Select((refpr, ver, param) => new PfRecipeParametersDto + .Where((refpr, ver, param) => refpr.FkRoutingCode == it.FkRoutingCode && refpr.FkOperationCode == it.OperationCode) + .ToList((refpr, ver, param) => new PfRecipeParametersDto { - //Id = param.Id, - //RecipeCode = param.RecipeCode, - //Version = param.Version, - //ParamName = param.ParamName, - //Unit = param.Unit, - //UpperLimit = param.UpperLimit, - //LowerLimit = param.LowerLimit, - //StandardValue = param.StandardValue, - //Remark = param.Remark - }).ToList(), + Id = param.Id, + RecipeCode = param.RecipeCode, + Version = param.Version, + ParamName = param.ParamName, + Unit = param.Unit, + UpperLimit = param.UpperLimit, + LowerLimit = param.LowerLimit, + StandardValue = param.StandardValue, + Remark = param.Remark + }), //绑定的采集参数 ProcessOperationCollectParameters= SqlFunc.Subqueryable().Where(s => s.FkRoutingCode == it.FkRoutingCode && s.FkOperationCode == it.OperationCode).ToList(),