refactor: 订单状态枚举修改

This commit is contained in:
haoxr 2023-01-07 23:52:39 +08:00
parent 4f843aec66
commit ee3b89acf0

View File

@ -1,4 +1,4 @@
package com.youlai.mall.oms.enums; package com.youlai.mall.oms.common.enums;
import com.youlai.common.base.IBaseEnum; import com.youlai.common.base.IBaseEnum;
import lombok.Getter; import lombok.Getter;
@ -14,30 +14,30 @@ public enum OrderStatusEnum implements IBaseEnum<Integer> {
/** /**
* 待付款 * 待付款
*/ */
WAIT_PAY(1, "待付款"), UNPAID(0, "待付款"),
/** /**
* 待发货 * 已付款(待发货)
*/ */
WAIT_SHIPPING(2, "待发货"), PAID(1, "已付款"),
/** /**
* 已发货 * 已发货
*/ */
SHIPPED(3, "已发货"), SHIPPED(2, "已发货"),
/** /**
* 已完成 * 已完成
*/ */
FINISHED(4, "已完成"), COMPLETE(3, "已完成"),
/**
* 已关闭(退款完成)
*/
CLOSED(5, "已关闭"),
/** /**
* 已取消 * 已取消
*/ */
CANCELED(6, "已取消"); CANCELED(4, "已取消"),
/**
* 售后中
*/
SERVICING(5, "售后中")
;
OrderStatusEnum(Integer value, String label) {
OrderStatusEnum(int value, String label) {
this.value = value; this.value = value;
this.label = label; this.label = label;
} }