package com.friday.custody.common;

import java.math.BigDecimal;

public class CustodyContants {
    //日期格式1
    public static final String DATE_FORMAT = "yyyyMMdd";
    //日期格式2
    public static final String DATE_ACROSS_FORMAT = "yyyy-MM-dd";
    //日期格式3
    public static final String DATE_SLASH_FORMAT = "yyyy/MM/dd";
    //日期格式4
    public static final String DATE_SHORT_DETAIL_FORMAT = "yyyyMMddHHmmss";
    //日期格式5
    public static final String DATE_SHORT_ACROSS_FORMAT = "yyyy-MM-dd HH:mm:ss";
    //日期格式16
    public static final String FORMAT_DATE_DOT = "yyyy.MM.dd";

    /**
     * 标准时间格式：HH:mm:ss
     */
    public static final String NORM_TIME_PATTERN = "HH:mm:ss";
    /**
     * 时间格式
     */
    public static final String TIME_PATTERN = "HHmmss";

    //日期格式17
    public static final String DATE_SHORT_FORMAT_ZH = "yyyy年MM月dd日";

    //英文连接符
    public static final String ACROSS = "-";

    //斜杠分隔符
    public static final  String SLASH = "/";
    //英文点
    public static final String EN_DOT = ".";
    //英文逗号
    public static final  String EN_COMMA = ",";
    //金额0的默认显示
    public static final  String ZERO_STR = "0";
    //英文百分号
    public static final String PERCENT_SIGN = "%";
    //中文百分号
    public static final String ZH_PERCENT_SIGN = "％";
    //匹配纯数字和小数点的正则表达式
    public static final String POINT_NUMBER_REGEX = "^[+-]?(0|([1-9]\\d*))(\\.\\d{1,2})*?$";

    //循环次数 初始化
    //public static final int INIT_LOOP_TIME = 36;
    public static final int INIT_BY_MONTH_LOOP_TIME = 12;
    public static final int INIT_BY_DAY_LOOP_TIME = 365;
    //循环次数 每日更新
    public static final int UPDATE_BY_MONTH_DAILY_LOOP_TIME = 1;
    public static final int UPDATE_BY_DAY_DAILY_LOOP_TIME = 15;
    public static final int INIT_FLAG = 1;
    public static final int UPDATE_FLAG = 0;

    public static final  BigDecimal HUNDRED = new BigDecimal("100");
    //通知类型
    public static final int NOTICE_MENTHODS_ALL = 0; //邮箱,短信
    public static final int NOTICE_MENTHODS_MAIL = 1; // 邮箱
    public static final int NOTICE_MENTHODS_SMS = 2; //短信
    public static final int NOTICE_MENTHODS_NO = 3; //都不发
    //提醒类型
    public static final int NOTICE_TYPE_CHANGE = 0; //变动提醒
    public static final int NOTICE_TYPE_OVER = 1; //超限提醒
    //接口授权类型
    public static final String AUTHORIZATION_API = "api"; //变动提醒
    public static final String AUTHORIZATION_EMAIL = "email"; //超限提醒



    /**
     * 匹配yyyy-MM-dd格式时间
     */
    public static final String YEAR_MONTH_DAY_REGEX_WITH_SEPARATOR = "(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$";
    /**
     * 匹配yyyyMMdd格式时间
     */
    public static final String YEAR_MONTH_DAY_REGEX = "((\\d{3}[1-9]|\\d{2}[1-9]\\d|\\d[1-9]\\d{2}|[1-9]\\d{3})(((0[13578]|1[02])(0[1-9]|[12]\\d|3[01]))|((0[469]|11)(0[1-9]|[12]\\d|30))|(02(0[1-9]|[1]\\d|2[0-8]))))|(((\\d{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))0229)";


    //versionStr
    public static final String R_PT_S_CUSTODY_3_0_3 = "R-PT-S-Custody-3.0.3";
    public static final String R_PT_S_CUSTODY_3_0_4 = "R-PT-S-Custody-3.0.4";
    public static final String R_PT_S_CUSTODY_3_0_5 = "R-PT-S-Custody-3.0.5";
    public static final String R_PT_S_CUSTODY_3_0_5_PATCH02 = "R-PT-S-Custody-3.0.5-patch03";
    public static final String R_PT_S_CUSTODY_3_0_6 = "R-PT-S-Custody-3.0.6";
    public static final String R_PT_S_CUSTODY_3_0_6_01 = "R-PT-S-Custody-3.0.6-01";
    public static final String R_PT_S_CUSTODY_3_0_6_PATCH01 = "R-PT-S-Custody-3.0.6-patch01";
    public static final String R_PT_S_CUSTODY_3_0_8 = "R-PT-S-Custody-3.0.8";
    public static final String R_PT_S_CUSTODY_3_0_9 = "R-PT-S-Custody-3.0.9";
    public static final String R_PT_S_CUSTODY_3_1_0_PATCH01 = "R-PT-S-CUSTODY-3.1.0-patch01";
    public static final String R_PT_S_CUSTODY_3_1_1_PATCH = "R-PT-S-CUSTODY-3.1.1-patch";
    public static final String R_PT_S_CUSTODY_3_1_1_PATCH01 = "R-PT-S-CUSTODY-3.1.1-patch01";
    public static final String R_PT_S_CUSTODY_3_1_2 = "R-PT-S-CUSTODY-3.1.2";
    public static final String R_PT_S_CUSTODY_3_1_2_patch01 = "R-PT-S-CUSTODY-3.1.2-patch01";
    public static final String R_PT_S_CUSTODY_3_1_4_patch01 = "R-PT-S-Custody-3.1.4-patch01";
    public static final String R_PT_S_CUSTODY_3_1_5 = "R-PT-S-Custody-3.1.5";
    public static final String R_PT_S_CUSTODY_3_1_8_PATCH01 = "R-PT-S-Custody-3.1.8-patch01";
    public static final String R_PT_S_CUSTODY_3_2_0="R-PT-S-Custody-3.2.0";
    public static final String R_PT_S_Custody_3_2_1_patch01="R-PT-S-Custody-3.2.1-patch01";
    public static final String R_PT_S_CUSTODY_3_2_6 = "R-PT-S-Custody-3.2.6";
    public static final String R_PT_S_CUSTODY_3_2_7 = "R-PT-S-Custody-3.2.7";
    public static final String R_PT_S_CUSTODY_3_2_7_PATCH01 = "R-PT-S-Custody-3.2.7-patch01";
    public static final String R_PT_S_CUSTODY_3_2_8 = "R-PT-S-Custody-3.2.8";


}
