From 7c3418c45926b5288b22044d60dbb12fa2c982d0 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Fri, 27 Sep 2024 18:02:40 +0800
Subject: [PATCH] 大厅登记接口优化

---
 dyh-service/dyh-utils/src/main/java/cn/huge/module/cust/utils/CustIdUtils.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dyh-service/dyh-utils/src/main/java/cn/huge/module/cust/utils/CustIdUtils.java b/dyh-service/dyh-utils/src/main/java/cn/huge/module/cust/utils/CustIdUtils.java
index afbb2f2..0a52fd2 100644
--- a/dyh-service/dyh-utils/src/main/java/cn/huge/module/cust/utils/CustIdUtils.java
+++ b/dyh-service/dyh-utils/src/main/java/cn/huge/module/cust/utils/CustIdUtils.java
@@ -16,17 +16,17 @@
     /**
      * 时间Id统计常量
      */
-    private static int COUNT_NUM = 10000;
+    private static int COUNT_NUM = 1000;
 
     /**
      * 时间Id统计常量,常量前缀
      */
-    private static int SIGN_COUNT_NUM = 10000;
+    private static int SIGN_COUNT_NUM = 1000;
 
     /**
      * 时间Id统计常量,常量后缀
      */
-    private static int COUNT_NUM_SIGN = 10000;
+    private static int COUNT_NUM_SIGN = 1000;
 
     /**
      * 获取时间Id,后四位常量
@@ -34,8 +34,8 @@
      */
     public synchronized static String getNewTimeId(){
         String  timeId = getNowTime() + (COUNT_NUM++);
-        if(COUNT_NUM > 99999){
-            COUNT_NUM = 10000;
+        if(COUNT_NUM > 9999){
+            COUNT_NUM = 1000;
         }
         timeId=timeId.substring(2, timeId.length());
         return timeId;
@@ -48,8 +48,8 @@
      */
     public synchronized static String getSignNewTimeId(String sign){
         String  timeId = getNowTime() + sign + (SIGN_COUNT_NUM++);
-        if(SIGN_COUNT_NUM > 99999){
-            SIGN_COUNT_NUM = 10000;
+        if(SIGN_COUNT_NUM > 9999){
+            SIGN_COUNT_NUM = 1000;
         }
         timeId=timeId.substring(2, timeId.length());
         return timeId;
@@ -62,8 +62,8 @@
      */
     public synchronized static String getNewTimeIdSign(String sign){
         String timeId = getNowTime() + (COUNT_NUM_SIGN++) + sign;
-        if(COUNT_NUM_SIGN > 99999){
-            COUNT_NUM_SIGN = 10000;
+        if(COUNT_NUM_SIGN > 9999){
+            COUNT_NUM_SIGN = 1000;
         }
         timeId=timeId.substring(2, timeId.length());
         return timeId;

--
Gitblit v1.8.0