Constants.java 1.72 KB
package cn.com.glsx.stdinterface.common.constants;

/**
 * 公共的常量类
 */
public final class Constants {
    /**
     * 车辆价格临界值 100 万
     */
    public final static int VEHICLE_PRICE_LIMIT = Integer.MAX_VALUE;

    /**
     * 每次调用远程接口的尝试次数
     */
    public final static int TRY_COUNT = 3;

    /**
     * 每次尝试的等待时间
     */
    public final static int TRY_WAIT_TIME = 1000;

    /**
     * 时间格式
     */
    public final static String TIME_FORMAT = "HH:mm:ss";

    /**
     * 日期格式
     */
    public final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 投保的公司 GL:新人保保单2020 本地处理
     */
    public final static String INSURANCE_COMPANY_GL = "GL";
    public final static String[] parsePatterns = new String[]{"yyyy-MM-dd", "yyyy/MM/dd"};
    // 特约长度
    public final static int SPE_BR_LEN = 166;
    /**
     * 保单的状态 0 等待投保
     */
    public static final int INSURANCE_WAIT_SEND_STATUS = 0;
    /**
     * 保单的状态 1 投保成功
     */
    public static final int INSURANCE_SUCCESS_SEND_STATUS = 1;
    /**
     * 保单的状态 2 投保失败
     */
    public static final int INSURANCE_FAIL_SEND_STATUS = 2;
    /**
     * 保单的状态 3 退保
     */
    public static final int INSURANCE_CANCEL_SEND_STATUS = 3;
    /**
     * 保单的状态 4 草稿
     */
    public static final int INSURANCE_DRAFT_STATUS = 4;
    /**
     * 保单的状态 5 待激活
     */
    public static final int INSURANCE_WAIT_ACTIVE_STATUS = 5;
    /**
     * 保单的状态 6 删除
     */
    public static final int INSURANCE_DELETE_STATUS = 6;
    public static String PICC_SUCC = "0";

}