From a6e57f24d0849bd465e18cb41a28aa5acc284cc6 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周六, 03 5月 2025 18:05:30 +0800
Subject: [PATCH] 222

---
 PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs
index d5cf9a8..210ea86 100644
--- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs
+++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs
@@ -27,7 +27,7 @@
         private IServiceProvider _serviceProvider;
         private readonly ILogger<PipeLineLemsProjectService> _logger;
         private readonly IVariableDataCache _variableDataCache;
-        private readonly IWorkSectionManager _workSectionManager;
+
         /// <summary>
         /// 鍙橀噺鏈嶅姟
         /// </summary>
@@ -56,7 +56,6 @@
         /// <param name="logger">The logger.</param>
         /// <param name="variableDataCache">The variable data cache.</param>
         public PipeLineLemsProjectService(
-            IWorkSectionManager workSectionManager,
             VariableService variableService,
             IServiceProvider serviceProvider, ILogger<PipeLineLemsProjectService> logger, IVariableDataCache variableDataCache)
         {
@@ -64,7 +63,6 @@
             _logger = logger;
             _variableDataCache = variableDataCache;
             _variableService = variableService;
-            _workSectionManager = workSectionManager;
         }
 
         /// <summary>
@@ -82,6 +80,7 @@
             _monitorVariableNames = new Dictionary<string, string>
             {
                 { "鎵撶爜杩涚珯淇″彿", "鎵撶爜杩涚珯淇″彿(鎻忚堪)" },
+                { "鍒囧壊杩涚珯淇″彿", "鍒囧壊杩涚珯淇″彿(鎻忚堪)" },
             };
 
             // 鍒涘缓閫氶亾鐩戝惉
@@ -306,6 +305,7 @@
                 //TODO:鏆傛椂鐢熸垚浜у搧ID
                 //鑾峰彇涓婁竴涓伐搴忕殑浜у搧ID
                 //鏍规嵁宸ュ簭鍚嶈幏鍙栧伐搴忓璞�
+                var _workSectionManager = _serviceProvider.GetRequiredService<IWorkSectionManager>();
                 var lastWorkSection = "鎵撶爜宸ュ簭";
                 var workSection = await _workSectionManager.GetByNameAsync(lastWorkSection);
 

--
Gitblit v1.9.3