| | |
| | | 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; |
| | | |
| | |
| | | //答题主题 |
| | | 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"; |
| | |
| | | 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 |
| | |
| | | // 超时预警配置 |
| | | 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){ |
| | |
| | | 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 |
| | |
| | | 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; |