From 6a394fff5528c02f981abc0e9ee2d7211b694b70 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期二, 21 五月 2024 09:54:18 +0800 Subject: [PATCH] 代码初始化 --- server/system_service/src/main/java/com/doumee/core/utils/Constants.java | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java index 0d50d69..23ecdd1 100644 --- a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java +++ b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java @@ -14,6 +14,7 @@ import java.util.Arrays; import java.util.Date; import java.util.List; +import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -61,6 +62,12 @@ //绛旈涓婚 public static final String LW_THEME = "LW_THEME"; public static final String THEME = "THEME"; + //涓婁笅鐝� 闂撮殧鏃堕棿 + public static final String WORK_START = "WORK_START"; + public static final String WORK_END = "WORK_END"; + public static final String INTERVAL = "INTERVAL"; + + // 鍔冲姟鏉ヨ閰嶇疆 public static final String LABOR_CONFIG = "LABOR_CONFIG"; @@ -101,6 +108,12 @@ public static boolean DEALING_HK_EMPOWER_DETAIL = false; public static boolean DEALING_HK_EMPOWER_RESULT = false; public static boolean DEALING_HK_PARKBOOK = false; + public static final String SMS ="SMS" ; + public static final String SMS_COMNAME = "SMS_COMNAME"; + public static final String SMS_IP ="SMS_IP" ; + public static final String SMS_PORT ="SMS_PORT" ; + public static final String SMS_APPKEY="SMS_APPKEY"; + public static final String SMS_APPSECRET ="SMS_APPSERECT" ; // ERP鎺ュ彛閰嶇疆 public static final String ERP_CONFIG = "ERP_CONFIG"; // ERP ACCESS_KEY @@ -114,6 +127,18 @@ // 瓒呮椂棰勮閰嶇疆 public static final String TIMEOUT_WARNING = "TIMEOUT_WARNING"; // FTP鏂囦欢鏈嶅姟鍣ㄨ祫婧愯闂湴鍧� + + public static String getRandom6Num( ) { + Random random = new Random(); + StringBuilder sb = new StringBuilder(); + + for (int i = 0; i < 6; i++) { + int digit = random.nextInt(10); + sb.append(digit); + } + + return sb.toString(); + } public static Date getBirthdyByCardNo(String idCard){ if(idCard ==null || idCard.length()<14){ @@ -232,6 +257,16 @@ int signout = 8; int invalid =9; } + + public interface multifileObjType{ + //0闅愭偅鐜板満鎯呭喌 1闅愭偅澶勭悊鍓嶆儏鍐� 2闅愭偅澶勭悊鍚庢儏鍐� 3闅愭偅閫�鍥炶鏄� + int zero = 0; + int one = 1; + int two = 2; + int three = 3; + } + + public interface EmpowerStatus{ //涓�鍗¢�氭巿鏉冧笅鍙戠姸鎬� 0寰呬笅鍙� 1宸蹭笅鍙� 2涓嬪彂鎴愬姛 3宸插彇娑� 4涓嬪彂澶辫触 5浠诲姟涓嬭浇宸茬粨鏉� int wait = 0; -- Gitblit v1.9.3