2020-08-07 17:11:12 +08:00
|
|
|
package com.cowr.common;
|
|
|
|
|
|
2020-09-19 23:11:55 +08:00
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
2020-08-07 17:11:12 +08:00
|
|
|
public class Const {
|
2020-08-25 16:39:53 +08:00
|
|
|
public static final String DEFAULT_PASSWORD = "678910"; // 新建用户默认密码
|
|
|
|
|
public static final int DEFAULT_PRODUCT_ID = 1; // 默认品类id
|
|
|
|
|
public static final String LOGIC_DEL_KEY = "del"; // 逻辑删除字段
|
|
|
|
|
public static final int LOGIC_DEL_INVALID = 1; // 标记为逻辑删除
|
|
|
|
|
public static final int LOGIC_DEL_VALID = 0; // 标记为有效数据
|
|
|
|
|
public static final int DEFAULT_SN_LEN = 4; // 订单号结尾的序列号默认长度
|
|
|
|
|
public static final int DEFAULT_SN_MAX = Double.valueOf(Math.pow(10, DEFAULT_SN_LEN) - 1).intValue(); // 订单号结尾的序列号默认最大值
|
|
|
|
|
public static final String ORDER_BY_ASC = "asc"; // 正序
|
|
|
|
|
public static final String ORDER_BY_DESC = "desc"; // 倒叙
|
|
|
|
|
public static final String REDIS_SEPARATE = ":"; // reids 分隔符
|
|
|
|
|
public static final String REDIS_CACHENAME = "mian"; // redis 默认 cache 对象别名
|
|
|
|
|
public static final String REDIS_JSON = "json"; // redis 按 json 存储对象
|
2020-09-19 23:11:55 +08:00
|
|
|
|
|
|
|
|
public static final String TEMP_CODE_PEIE = "SMS_200713899"; // 配额分配通知
|
|
|
|
|
public static Map<String, String> SMS_TEMP_MAP;
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
|
SMS_TEMP_MAP = new HashMap<>();
|
|
|
|
|
SMS_TEMP_MAP.put("SMS_200713899", "已经在${supermarket_name}分配了${weight}吨配额,请在${date}当天安排车辆前去运输。");
|
|
|
|
|
}
|
2020-08-07 17:11:12 +08:00
|
|
|
}
|