1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| package com.iotechn.unimall.data.enums;
|
| import com.dobbinsoft.fw.core.enums.BaseEnums;
|
| /**
| * Created by rize on 2019/2/13.
| */
| public enum OrderStatusType implements BaseEnums<Integer> {
| UNPAY(10, "未付款"),
| GROUP_SHOP_WAIT(12,"等待团购活动结束"),
| WAIT_STOCK(20, "待出库"),
| WAIT_CONFIRM(30, "待收货"),
| WAIT_APPRAISE(40, "待评价"),
| COMPLETE(50, "已完成"),
| REFUNDING(60, "退款中"),
| REFUNDED(70, "已退款"),
| CANCELED(80, "已取消"),
| CANCELED_SYS(90, "已取消(系统)");
|
| OrderStatusType(int code, String msg) {
| this.code = code;
| this.msg = msg;
| }
|
| private int code;
|
| private String msg;
|
| public Integer getCode() {
| return code;
| }
|
| public String getMsg() {
| return msg;
| }
|
|
| /**
| * 判断定订单是否可退款
| * @return
| */
| public static boolean refundable(int orderStatus) {
| if (orderStatus == WAIT_STOCK.getCode() || orderStatus == WAIT_CONFIRM.getCode()) {
| return true;
| } else {
| return false;
| }
| }
|
| }
|
|