From 751bca178459102fc2f3fc6f0e0cbbcf08cd4965 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Wed, 10 Dec 2025 15:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DiagnosisFunctions/DiagnosisFunctionAppService.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Shentun.Peis.Application/DiagnosisFunctions/DiagnosisFunctionAppService.cs b/src/Shentun.Peis.Application/DiagnosisFunctions/DiagnosisFunctionAppService.cs index 27e4d46..bcbb403 100644 --- a/src/Shentun.Peis.Application/DiagnosisFunctions/DiagnosisFunctionAppService.cs +++ b/src/Shentun.Peis.Application/DiagnosisFunctions/DiagnosisFunctionAppService.cs @@ -538,9 +538,14 @@ namespace Shentun.Peis.DiagnosisFunctions //老系统 拆分结果后,每个结果如果匹配到了结果模板,就不继续诊断匹配 //新系统 匹配到底 + var resultAry = GetResultArry(item.Result); + List templateResultList = new List(); + for (int i = 0; i < resultAry.Length; i++) + { + templateResultList.Add(Regex.Replace(resultAry[0], @"\d+(\.\d+)?", "$")); + } - List templateResultList = new List(GetResultArry(item.Result)); - + // List templateResultList = new List(GetResultArry(item.Result)); var summaryResultMatchIsOld = await _sysParmValueManager.GetSysParmValueAsync(Guid.Empty, "summary_result_match_isold"); @@ -556,7 +561,6 @@ namespace Shentun.Peis.DiagnosisFunctions foreach (var itemResult in templateResultList) { - List tempDiagnosisList = new List(); if (string.IsNullOrWhiteSpace(itemResult) || itemResult.StartsWith("余未见异常"))