From 7c63794aa85ab939308d10a9ad5c1a57c46bbf6f Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周六, 14 12月 2024 14:01:46 +0800 Subject: [PATCH] 222 --- CC/iWareCommon/BusinessHelper/BusinessHelper.cs | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CC/iWareCommon/BusinessHelper/BusinessHelper.cs b/CC/iWareCommon/BusinessHelper/BusinessHelper.cs index 6e7021c..b241c06 100644 --- a/CC/iWareCommon/BusinessHelper/BusinessHelper.cs +++ b/CC/iWareCommon/BusinessHelper/BusinessHelper.cs @@ -111,15 +111,7 @@ } - /// <summary> - /// 闅忔満鐢熸垚1-10000鐨凱LC浠诲姟鍙� - /// </summary> - /// <returns></returns> - public static string CreatePlcTaskId() - { - int iSeed = 10000; - return new Random(Guid.NewGuid().GetHashCode()).Next(1, iSeed).ToString(); - } + /// <summary> /// 鍒涘缓杈撻�佺嚎浠诲姟鍙凤紝闅忔満鐢熸垚(1, 3000)鐨凱LC浠诲姟鍙� /// </summary> @@ -139,5 +131,12 @@ //浠�101-9999锛屼负浠�涔堣浠�101寮�濮嬶紝鍥犱负1-100浣滀负鎵嬪姩浠诲姟涓嬪彂銆傘�怑ditBy shaocx,2022-05-10銆� return new Random(Guid.NewGuid().GetHashCode()).Next(101, iSeed).ToString(); } + + public static string CreatePlcTaskId() + { + int iSeed = 9999; + //浠�101-9999锛屼负浠�涔堣浠�101寮�濮嬶紝鍥犱负1-100浣滀负鎵嬪姩浠诲姟涓嬪彂銆傘�怑ditBy shaocx,2022-05-10銆� + return new Random(Guid.NewGuid().GetHashCode()).Next(101, iSeed).ToString(); + } } } -- Gitblit v1.9.3