| | |
| | | package com.doumee.core.utils; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | |
| | | public static final String HEADER_USER_TOKEN = "dm_user_token"; |
| | | public static final String REDIS_USER_KEY = "user_token_list_"; |
| | | public static final String REDIS_TOKEN_KEY = "token_"; |
| | | public static final String WMS_IN_REPERTOTY_CODE_LIST = "WMS_IN_REPERTOTY_CODE_LIST"; |
| | | public static final String REDIS_HK_TOKEN_KEY = "hk_token_"; |
| | | public static boolean IS_AUTOCALL_WORKING = false; |
| | | public static final String HK_TOKEN_VALIDITY = "HK_TOKEN_VALIDITY"; |
| | | public static final String[] ALL_SPELL_LIST_FIRST = new String[]{"A", "B", "C", "D", "E", "F", "G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; |
| | | public static final int ZERO = 0 ; |
| | |
| | | public static final String HK_PARAM ="HK_PARAM" ; |
| | | public static final String HK_WEBSITE_DOMAIN_URL ="HK_WEBSITE_DOMAIN_URL" ; |
| | | public static final String LED_CONTENT_SPEED ="LED_CONTENT_SPEED" ; |
| | | public static final String SYSTEM_TITLE ="SYSTEM_TITLE" ; |
| | | public static final String SYSTEM_SUBTITLE ="SYSTEM_SUBTITLE" ; |
| | | public static final String HK_HOST ="HK_HOST" ; |
| | | public static final String HK_APPKEY ="HK_APPKEY" ; |
| | | public static final String LOGIN_OUT_URL ="LOGIN_OUT" ; |
| | |
| | | public static final String JK_PLAN_DISTANCE_CLUSTER ="JK_PLAN_DISTANCE_CLUSTER" ; |
| | | public static final String HK_PUSH_THIRD_URL ="HK_PUSH_THIRD_URL" ; |
| | | |
| | | public static final String API_KEY ="API_KEY" ; |
| | | |
| | | public static final String JDY_APPID = "JDY_APPID"; |
| | | public static final String JDY_ENTRY_ID ="JDY_ENTRY_ID"; |
| | | public static final String JDY_API_KEY ="JDY_API_KEY" ; |
| | | public static final String JDY_CONFIG ="JDY_CONFIG" ; |
| | | public static final String JDY_COMPANY_ROOT_NO ="JDY_COMPANY_ROOT_NO" ; |
| | | public static final String JDY_SECRET ="JDY_SECRET"; |
| | | public static final String JDY_MEMBER_PUSH_STATUS_URL ="JDY_MEMBER_PUSH_STATUS_URL"; |
| | | public static final String JDY_API_HOST = "JDY_API_HOST"; |
| | | |
| | | /** |
| | | * 操作类型,用于做接口验证分组 |
| | | */ |
| | |
| | | public static final String WEATHER_CONFIG ="WEATHER_CONFIG" ; |
| | | public static final String REQUEST_URL ="REQUEST_URL" ; |
| | | public static final String LOCATION ="LOCATION" ; |
| | | public static final String API_KEY ="API_KEY" ; |
| | | public static final String CABINET_CONFIG ="CABINET_CONFIG" ; |
| | | public static final String BLOW_TIME ="BLOW_TIME" ; |
| | | public static final String PRESSURE ="PRESSURE" ; |
| | |
| | | |
| | | public static final String COFFEE_BEAN_TASK ="COFFEE_BEAN_TASK"; |
| | | |
| | | public static final String IN_REPERTOTY_CODE ="IN_REPERTOTY_CODE"; |
| | | |
| | | public static final String HOME_IMAGE ="HOME_IMAGE"; |
| | | public static final String DD_TALK ="DD_TALK"; |
| | |
| | | public static final String APP_SECRET ="APP_SECRET"; |
| | | public static final String ACCESS_TOKEN ="ACCESS_TOKEN"; |
| | | public static final String AGENT_ID ="AGENT_ID"; |
| | | |
| | | |
| | | |
| | | |
| | | public static final String WX_PLATFORM = "WX_PLATFORM"; |
| | |
| | | } |
| | | } |
| | | |
| | | public static String getWmsAreasNameByCode(String listStr,String code) { |
| | | try { |
| | | JSONArray list = JSONObject.parseArray(listStr ); |
| | | if(list!=null && list.size()>0){ |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if(StringUtils.equals(list.getJSONObject(i).getString("code"),code)){ |
| | | return list.getJSONObject(i).getString("name"); |
| | | } |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | return null; |
| | | } |
| | | public static List<JSONObject> getWmsAreasList(){ |
| | | List<JSONObject> list = new ArrayList<>(); |
| | | JSONObject t = new JSONObject(); |
| | | t.put("code","01"); |
| | | t.put("name","蚌埠菴烟厂"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","02"); |
| | | t.put("name","芜湖卷烟厂"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","03"); |
| | | t.put("name","合肥卷烟厂"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","04"); |
| | | t.put("name","阜阳卷烟厂"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","04206"); |
| | | t.put("name","合肥卷烟厂鞍山库"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","05"); |
| | | t.put("name","滁州卷烟厂"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","06"); |
| | | t.put("name","蒙城香茄生产部"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","07"); |
| | | t.put("name","重庆中烟工业有限责任公司"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","08"); |
| | | t.put("name","陕西中烟工业有限责任公司"); |
| | | list.add(t); |
| | | t = new JSONObject(); |
| | | t.put("code","09"); |
| | | t.put("name","特殊纪念版"); |
| | | list.add(t); |
| | | return list; |
| | | } |
| | | public static void main(String[] args) { |
| | | System.out.println(JSONObject.toJSONString(getWmsAreasList())); |
| | | // getChinesePingyin("DDaa江萍的对对对"); |
| | | // System.out.println(DateUtil.getShortTime(new Date())); |
| | | // System.out.println( "2025-01-14 10:50:56".substring(0,10)); |
| | | // System.out.println(Constants.checkCarNo("皖AA10991")); |
| | | // System.out.println(Constants.getVehiclePlateNo("湘B140D17").getDescription()); |
| | | // System.out.println(Constants.getVehiclePlateNo("宿AP0637").getDescription()); |
| | | |
| | | // 0789150665 C97B092F 0789150561 |
| | | |
| | | |
| | |
| | | LEAVED(10, "已离园 ","车辆从{data}离场 " ), |
| | | OVER_NUMBER(11, "已过号","超时未到指定月台自动过号" ), |
| | | CHANGE_GROUP(12, "更换月台组","从【{data}】更换到【{data1}】" ), |
| | | BACK_TO_WAIT_SIGNIN(13, "重新签到","重新签到" ), |
| | | ; |
| | | |
| | | // 成员变量 |