From 4658e9353f7aa76a833d36ed988d77bf362ad0ea Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期二, 21 五月 2024 11:54:12 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- server/system_service/src/main/java/com/doumee/core/utils/Constants.java | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 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..672aafc 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 @@ -11,9 +11,11 @@ import java.math.BigDecimal; import java.net.URLDecoder; import java.text.SimpleDateFormat; +import java.util.ArrayList; 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 +63,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 +109,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 +128,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){ @@ -192,6 +218,29 @@ return s.substring(0,5)+"*******"+s.substring(l-6,l); } + /** + * 鍒囧垎閫楀彿鎷兼帴鐨勬暣褰㈤泦鍚� + * @param memberIds + * @return + */ + + public static List<Integer> getIntegerListByStrs(String memberIds) { + List<Integer> idsList = null; + try { + String[] strs = memberIds.split(","); + for(String id :strs){ + if(idsList == null){ + idsList = new ArrayList<>(); + } + idsList.add(Integer.parseInt(id)); + } + }catch (Exception e){ + + } + + return idsList; + } + /** * mq tag @@ -232,6 +281,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