package com.matrix.system.common.constance;
|
|
/**
|
* 应用层的常量
|
*
|
* @author JIANGYOUYAO
|
* @email 935090232@qq.com
|
* @date Dec 10, 2017
|
*/
|
public class AppConstance {
|
|
public static final String WX_ORDER_FLAG = "微商城同步订单";
|
public static final String ZONGDIAN = "总店";
|
|
private AppConstance() {
|
}
|
|
/**
|
* 用户登录key
|
*/
|
public static final String DEFAULT_AUTHORITYMANAGER = "defaultAuthorityManager";
|
|
// =====================================账号类型
|
/**
|
* 平台管理员
|
*/
|
public static final String USER_TYPE_SUPER = "super";
|
/**
|
* 开发人员
|
*/
|
public static final String USER_TYPE_DEVELOPER = "developer";
|
/**
|
* 公司管理员
|
*/
|
public static final String USER_TYPE_ADMIN = "admin";
|
/**
|
* 客户
|
*/
|
public static final String USER_TYPE_CUSTIMER = "customer";
|
/**
|
* 公司员工
|
*/
|
public static final String USER_TYPE_EMPLOYEE = "employee";
|
|
|
// =====================================账号状态
|
/**
|
* 已激活
|
*/
|
public static final String ACCOUNT_STATUS_ACTIVATE = "activate";
|
/**
|
* 未激活
|
*/
|
public static final String ACCOUNT_STATUS_INACTIVATED = "inactivated";
|
/**
|
* 锁定
|
*/
|
public static final String ACCOUNT_STATUS_LOCKED = "locked";
|
|
// =====================================是否类字段
|
/**
|
* 是
|
*/
|
public static final String IS_Y = "是";
|
public static final String IS_N = "否";
|
|
// =====================================逻辑删除标识
|
/**
|
* 未删除
|
*/
|
public static final String RECORD_VALID = "Y";
|
|
/**
|
* 已删除
|
*/
|
public static final String RECORD_INVALID = "N";
|
|
/**
|
* 一级功能
|
**/
|
public static final Integer FUNCTION_FIRST_LEVEL = 1;
|
|
/**
|
* 错误密码输入次数
|
*/
|
public static final String ERROR_PASSWORD_TIMES = "error_password_times";
|
/**
|
* 不校验错误密码输入次数
|
*/
|
public static final String NOT_VALIDATE_ERROR_TIMES = "0";
|
/**
|
* 默认密码
|
*/
|
public static final String DEFAULT_PASSWORD = "default_password";
|
|
/**
|
* 登录失败标志
|
*/
|
public static final Integer LOGIN_FAIL = 2;
|
/**
|
* 登录成功标志
|
*/
|
public static final Integer LOGIN_SUCCESS = 1;
|
|
/**
|
* 权限拦截安全路径
|
*/
|
public static final String SAFEPATH = "/su";
|
|
public static final String TOKEN_KEY = "token";
|
/**
|
* 保存在cookie 中的token
|
*/
|
public static final String USER_TOKEN_COOKIE = "token";
|
public static final String COOKIE_TIME_OUT = "cookie_time_out";
|
/**
|
* nginx访问地址
|
*/
|
public static final String NGINX_URL = "static_resource_url";
|
/**
|
* 存储路径
|
*/
|
public static final String FILES_TORAGE_PATH = "file_storage_path";
|
|
/**
|
* 过滤特殊字符
|
*/
|
public static final String SPECIAL_CHARACTERS = "([[a-zA-Z0-9\\u4E00-\\u9FA5]{}]{1})";
|
/**
|
* 用户类型-客户
|
*/
|
public static final Integer USER_TYPE_CUSTOMER = 1;
|
|
/**
|
* 用户角色-boss
|
*/
|
public static final int User_ROLE_BOSS = 0;
|
|
/**
|
* 微信未授权
|
*/
|
public static final int IS_NOT_AUTHORIZE = 1;
|
|
|
|
|
/**
|
* 成功
|
*/
|
public static final String CODE_SUCCESS = "SUCCESS";
|
/**
|
* SUCCESS报文
|
*/
|
public static final String RESULT_XML_SUCCESS = "<xml><return_code><![CDATA[SUCCESS]]></return_code>"
|
+ "<return_msg><![CDATA[OK]]></return_msg></xml> ";
|
/**
|
* FAIL报文
|
*/
|
public static final String RESULT_XML_FAIL = "<xml><return_code><![CDATA[FAIL]]></return_code>"
|
+ "<return_msg><![CDATA[ERRORMSG]]></return_msg></xml> ";
|
|
/**
|
* 系统创建人
|
*/
|
public static final String SYSTEM_USER = "system";
|
|
|
|
|
/**
|
* 数据不可用
|
*/
|
public static final Integer DATA_DISABLE = 1;
|
|
/**
|
* 数据可用
|
*/
|
public static final Integer DATA_USEABLE = 2;
|
|
/**
|
* 搜索类型,1表示带入标题搜索
|
*/
|
public static final Integer SEARCH_TYPE = 1;
|
|
/**
|
* 是否上架 1表示上架
|
*/
|
public static final Integer IS_PUTAWAY = 1;
|
|
//=========================================优惠券相关
|
/**
|
* 优惠券可用
|
*/
|
public static final Integer COUPON_USE_ABLE = 1;
|
|
/**
|
* 优惠券不可用
|
*/
|
public static final Integer COUPON_DISABLE = 2;
|
|
/**
|
* 优惠券所有产品可用
|
*/
|
public static final Integer COUPON_ALL_PRODUCT_ABLE = 1;
|
|
/**
|
* 优惠券指定产品可用
|
*/
|
public static final Integer COUPON_ALL_SPECIFIC_PRODUCT_ABLE = 2;
|
|
/**
|
* 优惠券所有人可用
|
*/
|
public static final Integer COUPON_GET_LIMT_ALL = 1;
|
|
/**
|
* 优惠券仅新人可用
|
*/
|
public static final Integer COUPON_GET_LIMT_NEW = 2;
|
|
/**
|
* 我的优惠券已使用
|
*/
|
public static final Integer MY_COUPON_USE = 1;
|
|
/**
|
* 我的优惠券未使用
|
*/
|
public static final Integer MY_COUPON_NOT_USE = 2;
|
|
/**
|
* 我的优惠券已过期
|
*/
|
public static final Integer MY_COUPON_PAST = 1;
|
|
|
/**
|
* 启用
|
*/
|
public static final Integer IS_START = 0;
|
|
/**
|
* 停用
|
*/
|
public static final Integer IS_STOP = 1;
|
|
/**
|
* 未审核
|
*/
|
public static final Integer NOT_AUDITED = 0;
|
|
/**
|
* 审核通过
|
*/
|
public static final Integer AUDITED_PASS = 1;
|
|
/**
|
* 审核不通过
|
*/
|
public static final Integer AUDITED_FAILED = 2;
|
|
|
// =====================================订单包裹相关
|
|
/**
|
* 省内包裹
|
*/
|
public static final String IN_PROVINCE_PACKAGE = "IN_PROVINCE_PACKAGE";
|
|
/**
|
* 外省包裹
|
*/
|
public static final String OUT_PROVINCE_PACKAGE = "OUT_PROVINCE_PACKAGE";
|
|
/**
|
* 省内免邮费包裹
|
*/
|
public static final String PROVINCE_OVER_FREE_PACKAGE = "PROVINCE_OVER_FREE_PACKAGE";
|
|
// =====================================订单短信提醒相关
|
/**
|
* 短信提醒
|
*/
|
public static final String MSG_ALERT = "MSG_ALERT";
|
|
/**
|
* 短信提醒号码(多个以",分割")
|
*/
|
public static final String MSG_ALERT_MOBILE = "MSG_ALERT_MOBILE";
|
|
/**
|
* 短信提醒内容
|
*/
|
public static final String MSG_ALERT_CONTENT = "MSG_ALERT_CONTENT";
|
|
/**
|
* 商户余额不足短信提醒内容
|
*/
|
public static final String MSG_ALERT_NSF = "MSG_ALERT_NSF";
|
|
/**
|
* 待开票
|
*/
|
public static final Integer WAITING_INVOICE = 1;
|
|
/**
|
* 已邮寄
|
*/
|
public static final Integer SENDBYPOST = 2;
|
|
|
/**
|
* 数据类型,2表示json类型
|
*/
|
public static final String DATATYPE = "2";
|
|
// 物流信息相关
|
/**
|
* 发货物流
|
*/
|
public static final Integer LOGISTICS_TYPE_OF_SEND = 1;
|
|
/**
|
* 退货物流
|
*/
|
public static final Integer LOGISTICS_TYPE_OF_RETURN = 2;
|
|
/**
|
* 物流状态(无轨迹)
|
*/
|
public static final Integer LOGISTICS_STATUS_OF_NONE = 0;
|
|
/**
|
* 物流状态(已揽收)
|
*/
|
public static final Integer LOGISTICS_STATUS_OF_RECEIVE = 1;
|
|
/**
|
* 物流状态(在途中)
|
*/
|
public static final Integer LOGISTICS_STATUS_OF_ON_WAY = 2;
|
|
/**
|
* 物流状态(签收)
|
*/
|
public static final Integer LOGISTICS_STATUS_OF_SIGN_FOR = 3;
|
|
/**
|
* 物流状态(问题件)
|
*/
|
public static final Integer LOGISTICS_STATUS_OF_MISTAKE = 4;
|
|
|
/**
|
* 退货退款未审核
|
*/
|
public static final Integer REFUND_NOT_AUDITED = 1;
|
|
/**
|
* 退货退款审核通过
|
*/
|
public static final Integer REFUND_AUDITED_PASS = 2;
|
|
/**
|
* 退货退款审核不通过
|
*/
|
public static final Integer REFUND_AUDITED_FAILED = 3;
|
|
/**
|
* 申请退款状态:成功
|
*/
|
public static final Integer REFUND_SUCCESS = 1;
|
|
/**
|
* 申请退款状态:失败
|
*/
|
public static final Integer REFUND_FAIL = 2;
|
|
/**
|
* 申请退款状态:处理中
|
*/
|
public static final Integer REFUND_PROCESSING = 3;
|
|
/**
|
* 申请退款状态:用户已取消
|
*/
|
public static final Integer REFUND_USER_CANCEL = 4;
|
|
/**
|
* 申请退款状态:等待用户填写物流单号
|
*/
|
public static final Integer WAIT_USER_WRITE_WAYBILLNO = 5;
|
|
/**
|
* 退款类型:退款
|
*/
|
public static final Integer REFUND = 1;
|
|
/**
|
* 退款类型:退货退款
|
*/
|
public static final Integer REFUND_GOODS = 2;
|
|
/**
|
* 退货退款状态:未收货
|
*/
|
public static final Integer UNRECEIVED_GOODS = 1;
|
|
/**
|
* 退货退款状态:已收货
|
*/
|
public static final Integer GOODS_RECEIVED = 2;
|
|
/**
|
* 顺丰公司编码
|
*/
|
public static final String SF_LOGISTICS_COMPANY_CODE = "SF";
|
|
/**
|
* 顺丰物流返回成功标志
|
*/
|
public static final String SF_SUCESS_CODE = "OK";
|
|
/**
|
* 顺丰物流签收标志
|
*/
|
public static final String SF_IS_SIGN = "80";
|
|
/**
|
* 顺丰物流揽收标志
|
*/
|
public static final String SF_IS_RECEIVE = "50";
|
|
/**
|
* 顺丰物流运送标志
|
*/
|
public static final String SF_IS_ON_WAY = "30";
|
|
/**
|
* 顺丰物流问题件
|
*/
|
public static final String SF_IS_MISTAKE = "70";
|
|
/**
|
* 快递鸟已签收
|
*/
|
public static final String KDN_IS_SIGN = "签收人";
|
|
/**
|
* 快递鸟已揽收
|
*/
|
public static final String KDN_IS_RECEIVE = "已揽收";
|
|
/**
|
* 快递鸟运输中
|
*/
|
public static final String KDN_IS_ON_WAY = "已发往";
|
|
/**
|
* 快递鸟问题件
|
*/
|
public static final String KDN_IS_MISTAKE = "问题件";
|
|
/**
|
* 已发货
|
*/
|
public static final String IS_SHIPMENTS = "1";
|
|
/**
|
* 未发货
|
*/
|
public static final String IS_NOT_SHIPMENTS = "2";
|
|
/**
|
* 顶级节点父Id
|
*/
|
public static final Integer PARENTID_ATTRIBUTE = 0;
|
|
/**
|
* 购物车数量增加
|
*/
|
public static final Integer IS_INCREASE = 1;
|
|
/**
|
* 购物车数量减少
|
*/
|
public static final Integer IS_DECREASE = 2;
|
|
/**
|
* 是默认地址
|
*/
|
public static final Integer ADDR_DEFAULT = 1;
|
|
/**
|
* 配送方式(1=物流)
|
*/
|
public static final Integer SHIPPING_METHOD_LOGISTING = 1;
|
|
/**
|
* 配送方式(2=门店自取)
|
*/
|
public static final Integer SHIPPING_METHOD_SELF = 2;
|
|
/**
|
* 接受状态(1=未接收)
|
*/
|
public static final Integer PICK_UP_STATUS_NOT_RECEIVE = 1;
|
|
/**
|
* 接受状态(2=接收)
|
*/
|
public static final Integer PICK_UP_STATUS_RECEIVE = 2;
|
|
/**
|
* 产品评价-审核通过
|
*/
|
public static final String COM_AUDIT_APPROVAL = "审核通过";
|
|
/**
|
* 产品评价-审核不通过
|
*/
|
public static final String COM_AUDIT_FAILED = "审核不通过";
|
|
/**
|
* 产品评价-未审核
|
*/
|
public static final String COM_NOT_AUDITED = "未审核";
|
|
/**
|
* 特价商品
|
*/
|
public static final Integer PRODUCT_SPECIAL_PRICE = 1;
|
|
/**
|
* 数字1
|
*/
|
public static final Double one = 1.0;
|
|
/**
|
* 商户余额不足时微信返回状态码(退款失败时)
|
*/
|
public static final String REFUND_FAIL_NOTENOUGH = "NOTENOUGH";
|
|
|
// =====================================分销相关
|
/**
|
* 成为分销商最低额度(查询数据字典时使用)
|
*/
|
public static final String BECOMING_DISTRIBUTOR_CONDITION = "BECOMING_DISTRIBUTOR_CONDITION";
|
|
/**
|
* 用户等级-分销商
|
*/
|
public static final Integer USER_VIP_DISTRIBUTOR = 1;
|
|
/**
|
* 积分业务类型-获得
|
*/
|
public static final Integer SCORE_BUSINESS_TYPE_GET = 1;
|
|
/**
|
* 积分业务类型-兑换
|
*/
|
public static final Integer SCORE_BUSINESS_TYPE_EXCHANGE = 2;
|
|
/**
|
* 免费配送距离
|
*/
|
public static final String DELIVERY_DISTANCE = "delivery_distance";
|
/**
|
* 支持学校列表
|
*/
|
public static final String SCHOOL = "SCHOOL";
|
|
|
/**
|
* 省运费关系
|
*/
|
public static final String IN_PROVINCE_PACKAGE_PRICE = "IN_PROVINCE_PACKAGE_PRICE";
|
public static final String FIRST_OUT_PROVINCE_PACKAGE_PRICE = "FIRST_OUT_PROVINCE_PACKAGE_PRICE";
|
public static final String SECOND_OUT_PROVINCE_PACKAGE_PRICE = "SECOND_OUT_PROVINCE_PACKAGE_PRICE";
|
|
public static final String IN_PROVINCE_PACKAGE_LIST = "IN_PROVINCE_PACKAGE_LIST";
|
public static final String FIRST_PROVINCE_PACKAGE_LIST = "FIRST_PROVINCE_PACKAGE_LIST";
|
public static final String SECOND_PROVINCE_PACKAGE_LIST = "SECOND_PROVINCE_PACKAGE_LIST";
|
/**
|
* 起送费
|
*/
|
public static final String QSFY = "QSFY";
|
|
|
/**
|
* 小程序APPID
|
*/
|
public static final String MINIPROGRAM_APPID = "miniprogramAppid";
|
/**
|
* 小程序Secret
|
*/
|
public static final String MINIPROGRAM_SECRET = "miniprogramSecret";
|
/**
|
* 公众号APPID
|
*/
|
public static final String GZH_APPID = "gzhAppId";
|
|
/**
|
* 微信商户号
|
*/
|
public static final String WECHARPAY_MCHID = "wecharPayMchId";
|
/**
|
* 支付秘钥
|
*/
|
public static final String WECHARPAY_SECRET = "wecharPaySecret";
|
|
/**
|
* 支付通知地址
|
*/
|
public static final String WECHARPAY_NOTIFYURL = "wecharPaynotifyUrl";
|
/**
|
* 支付证书地址
|
*/
|
public static final String WECHARPAY_CERTLOCAL_PATH = "certLocalPath";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|