From 1f6ee76c23f0324dc744c78e5e428eda6604e0b6 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 15 12月 2024 18:32:32 +0800
Subject: [PATCH] 22

---
 CC/iWareCommon/BusinessHelper/BusinessHelper.cs |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/CC/iWareCommon/BusinessHelper/BusinessHelper.cs b/CC/iWareCommon/BusinessHelper/BusinessHelper.cs
index 33b4856..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>
@@ -135,7 +127,14 @@
         /// <returns></returns>
         public static string CreatePlcTaskIdForSrmTask()
         {
-            int iSeed = 65534;
+            int iSeed = 9999;
+            //浠�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