doum
15 小时以前 4936ba718f4ec2d069a9c28d07215573ed8548aa
server/system_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -1,7 +1,9 @@
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;
@@ -23,7 +25,9 @@
    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 ;
@@ -556,6 +560,7 @@
    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";
@@ -792,14 +797,73 @@
        }
    }
    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
@@ -960,6 +1024,7 @@
        LEAVED(10, "已离园 ","车辆从{data}离场 " ),
        OVER_NUMBER(11, "已过号","超时未到指定月台自动过号" ),
        CHANGE_GROUP(12, "更换月台组","从【{data}】更换到【{data1}】" ),
        BACK_TO_WAIT_SIGNIN(13, "重新签到","重新签到" ),
        ;
        // 成员变量