rk
2025-12-15 12d724c247e4f7dcb77b3a94891ccf4d86b53cfa
server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -15,6 +15,10 @@
    public static final int ZERO = 0 ;
    public static final int ONE = 1 ;
    public static final int TWO = 2 ;
    public static final int THREE = 3 ;
    public static final int FOUR = 4 ;
    public static final String LABELS_IMG ="LABELS_IMG" ;
    /**
     * mq tag
     */
@@ -38,6 +42,14 @@
    public static final String RESOURCE_PATH = "RESOURCE_PATH";
    public static final String INITIAL_PASSWORD = "INITIAL_PASSWORD";
    public static final String ACCESS_TOKEN = "ACCESS_TOKEN";
    public static final String MINIMUM_AVAILABLE_INTEGRAL = "MINIMUM_AVAILABLE_INTEGRAL";//最低可用积分配置
    public static final String SHOP_CONFIG = "SHOP_CONFIG";
    public static final String INTEGRAL_EXCHANGE_CASH_RATA = "INTEGRAL_EXCHANGE_CASH_RATA"; //积分-现金兑换比例(XXX积分抵扣1元)
    public static final String CASH_EXCHANGE_INTEGRAL_RATA = "CASH_EXCHANGE_INTEGRAL_RATA";//现金-积分兑换比例(1元可得到XXX积分)
    public static final String INITIAL_ROLE = "INITIAL_ROLE";
@@ -550,8 +562,8 @@
     */
    public  enum OrderStatus{
        WAIT_PAY(0, "待支付", "待支付"),
        PAY_DONE(1, "待发货", "已支付代发货"),
        WAIT_RECEIVE(2, "待收货", "已发货待收货"),
        PAY_DONE(1, "待发货", "已支付待发货"),
        WAIT_RECEIVE(2, "待收货/待自提", "已发货待收货/待自提"),
        DONE(3, "交易完成", "交易完成"),
        CLOSE(4, "已关闭", "已关闭"),
        PART_DONE(5, "部分发货", "部分发货"),
@@ -914,7 +926,8 @@
        DARENTANDIANTYPE(11, "达人探店分类", "达人探店分类"),
        HOMEZHUANQU(12, "首页专区", "首页专区"),
        BIG_AREA(13, "区域分类", "区域分类"),
        APPLICABLE_BRAND(14, "适用品牌", "适用品牌"),
        SERIES_BRAND(15, "品牌系列", "品牌系列"),
        ;
        // 成员变量
        private String name;
@@ -1037,4 +1050,68 @@
        }
    }
    public static String getRandomNumber(){
        Random random = new Random();
        long randomNumber = (long)(random.nextDouble() * 90000000000L) + 100000000000L;
        return randomNumber +"";
    }
    public  enum INTEGRAL_TYPE{
        ORDER_PAY(0, "订单消耗", -1),
        ORDER_CANCEL(1, "订单取消返还", 1),
        ;
        // 成员变量
        private String name;
        private int key;
        private int type;// 描述
        // 构造方法
        INTEGRAL_TYPE(int key, String name, int type) {
            this.name = name;
            this.key = key;
            this.type = type;
        }
        // 普通方法
        public static String getName(int index) {
            for (INTEGRAL_TYPE c : INTEGRAL_TYPE.values()) {
                if (c.getKey() == index) {
                    return c.name;
                }
            }
            return null;
        }
        // get set 方法
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public int getKey() {
            return key;
        }
        public void setKey(int key) {
            this.key = key;
        }
        public int getType() {
            return type;
        }
        public void setType(int type) {
            this.type = type;
        }
    }
}