From e2c7ea7779907214db673d6967c99a76d15aae33 Mon Sep 17 00:00:00 2001 From: dk1st Date: Thu, 30 Oct 2025 12:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=B7=A1=E6=A3=80=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/SecondaryCircuitInspectionPlanService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs index a260228..1d58e38 100644 --- a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs +++ b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs @@ -520,7 +520,7 @@ namespace YunDa.Server.ISMSTcp.Services } //检测巡检计划中的计划 - private async Task CheckPlanFormIds(List planIds) + private async Task CheckPlanFormIds(List planIds) { if (_planList == null) return; @@ -539,7 +539,7 @@ namespace YunDa.Server.ISMSTcp.Services { foreach (var item in plan.Plan.InspectionItems) { - if (planIds.IndexOf(item.Id) > -1 && item.IsActive) + if(planIds.Find( e => e.Id == item.Id) != null && item.IsActive) { if (!string.IsNullOrWhiteSpace(item.CalculationExpression) && !string.IsNullOrWhiteSpace(item.Id.ToString())) {