From 599aeb0d380f9b194e1dc363364779f3b498969e Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期四, 30 四月 2026 10:58:03 +0800
Subject: [PATCH] 1
---
WebAPI/Service/GeTuiService.cs | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/WebAPI/Service/GeTuiService.cs b/WebAPI/Service/GeTuiService.cs
index 0b0fbdf..2055e86 100644
--- a/WebAPI/Service/GeTuiService.cs
+++ b/WebAPI/Service/GeTuiService.cs
@@ -56,7 +56,7 @@
a.HCheckDate AS 瀹℃牳鏃ユ湡, a.HUpDater AS 淇敼浜�, a.HUpDateDate AS 淇敼鏃ユ湡, a.HCloseMan AS 鍏抽棴浜�,
a.HCloseDate AS 鍏抽棴鏃ユ湡, a.HDeleteMan AS 浣滃簾浜�, a.HDeleteDate AS 浣滃簾鏃ユ湡, a.HBillType
from OA_WorkLinkBillMain a where HInterID = {HInterID}
- select * from Gy_UserClientIdRelation
+ select * from Gy_UserClientIdRelation where HOnline = 1
", "OA_WorkLinkBillMain");
NotificationTemplate template = null;
ConcurrentDictionary<string, List<string>> userClientIDDictionary = new ConcurrentDictionary<string, List<string>>();
@@ -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() });
+ }
}
}
}
@@ -206,6 +211,9 @@
LogService.Write("-----------------------------------------------");
LogService.Write("-----------------------------------------------");
LogService.Write("----------------鏈嶅姟绔繑鍥炵粨鏋滐細" + pushResult);
+
+ //TODO: 褰撻敊璇俊鎭樉绀鸿澶囩绾挎椂锛屽皢褰撳墠璁惧UUID缁戝畾鐨勭敤鎴风櫥褰曠姸鎬侀厤缃负鏈櫥褰�
+
return false;
}
}
--
Gitblit v1.9.1