|
|
@@ -0,0 +1,43 @@ |
|
|
|
package cn.com.taiji.core.entity.dict.ass; |
|
|
|
|
|
|
|
/** |
|
|
|
* 注销订单阶段 |
|
|
|
* @author : qiubh |
|
|
|
* @date : 2025-08-09 |
|
|
|
*/ |
|
|
|
public enum CancelOrderStep { |
|
|
|
|
|
|
|
ORDER_INIT(1, "待支付"), |
|
|
|
ORDER_PAID(2, "通行情况确认中"), |
|
|
|
WAITING_AUDIT(3, "待审核"), |
|
|
|
REFUNDING(4, "退款中"), |
|
|
|
REFUNDED(5, "已完成"), |
|
|
|
; |
|
|
|
|
|
|
|
private final Integer code; |
|
|
|
|
|
|
|
private final String step; |
|
|
|
|
|
|
|
CancelOrderStep(Integer code, String step) { |
|
|
|
this.code = code; |
|
|
|
this.step = step; |
|
|
|
} |
|
|
|
|
|
|
|
public Integer getCode() { |
|
|
|
return this.code; |
|
|
|
} |
|
|
|
|
|
|
|
public String getStep() { |
|
|
|
return this.step; |
|
|
|
} |
|
|
|
|
|
|
|
public static CancelOrderStep find(Integer code) { |
|
|
|
for (CancelOrderStep instance : CancelOrderStep.values()) { |
|
|
|
if (instance.getCode().equals(code)) { |
|
|
|
return instance; |
|
|
|
} |
|
|
|
} |
|
|
|
throw new RuntimeException("不存在的订单步骤:" + code); |
|
|
|
} |
|
|
|
|
|
|
|
} |