- 物流信息字典值转换

- 优化一些bug
This commit is contained in:
sin
2019-04-16 20:20:54 +08:00
parent d30aeea6ab
commit dabd9f5f75
7 changed files with 70 additions and 20 deletions

View File

@@ -58,6 +58,10 @@ public class OrderLogisticsInfoBO implements Serializable {
* 物流 (字典)
*/
private Integer logistics;
/**
* 物流 (字典) 转换后的值
*/
private String logisticsText;
/**
* 物流编号
*/

View File

@@ -0,0 +1,19 @@
package cn.iocoder.mall.order.api.constant;
/**
* 字典 keys 定义
*
* @author Sin
* @time 2019-04-14 17:46
*/
public class DictKeyConstants {
/**
* 订单 - status
*/
public static final String ORDER_STATUS = "order_status";
/**
* 订单 - 物流商家
*/
public static final String ORDER_LOGISTICS_COMPANY = "logistics_company";
}

View File

@@ -1,15 +0,0 @@
package cn.iocoder.mall.order.api.constant;
/**
* 字典 keys 定义
*
* @author Sin
* @time 2019-04-14 17:46
*/
public class DictKeysConstants {
/**
* 订单 - status
*/
public static final String ORDER_STATUS_KEY = "order_status";
}

View File

@@ -31,11 +31,14 @@ public enum OrderErrorCodeEnum {
ORDER_ITEM_SOME_NOT_EXISTS(1008000201, "有不存在的商品!"),
// ========== 购物车 ==========
CARD_ITEM_NOT_FOUND(1008003000, "购物车项不存在"),
CARD_ITEM_SKU_NOT_FOUND(1008003001, "商品不存在"),
CARD_ITEM_SKU_QUANTITY_NOT_ENOUGH(1008003002, "商品库存不足"),
// 工具类服务 1008004000
DICT_SERVER_INVOKING_FAIL(1008004000, "字典服务调用失败!"),
;
private final int code;