From 6602ac3f2412697b7c29241c71c33b3d110c8846 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期四, 30 四月 2026 09:06:57 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
---
WebAPI/Service/GeTuiService.cs | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/WebAPI/Service/GeTuiService.cs b/WebAPI/Service/GeTuiService.cs
index 865fa0d..2055e86 100644
--- a/WebAPI/Service/GeTuiService.cs
+++ b/WebAPI/Service/GeTuiService.cs
@@ -65,12 +65,17 @@
{
foreach (DataRow row in ds.Tables[1].Rows)
{
- if (userClientIDDictionary.ContainsKey(row["HUserName"].ToString())){
- userClientIDDictionary[row["HUserName"].ToString()].Add(row["HClientID"].ToString());
- }
- else
+ // 鍙湁鍦ㄧ嚎鐨勭敤鎴� 鍦ㄩ渶瑕佸姞鍏ュ埌寰呭彂閫佺敤鎴疯澶囧叧鑱斿瓧鍏镐腑 涓嶉渶瑕佺粰涓嶅湪绾跨殑鐢ㄦ埛鍙戞秷鎭�
+ if(row["HOnline"].ToString() == "1")
{
- userClientIDDictionary.TryAdd(row["HUserName"].ToString(), new List<string>() { row["HClientID"].ToString() });
+ if (userClientIDDictionary.ContainsKey(row["HUserName"].ToString()))
+ {
+ userClientIDDictionary[row["HUserName"].ToString()].Add(row["HClientID"].ToString());
+ }
+ else
+ {
+ userClientIDDictionary.TryAdd(row["HUserName"].ToString(), new List<string>() { row["HClientID"].ToString() });
+ }
}
}
}
--
Gitblit v1.9.1