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
| package cn.iocoder.yudao.module.trade.enums.order;
|
| import cn.hutool.core.util.ObjectUtil;
| import cn.iocoder.yudao.framework.common.core.ArrayValuable;
| import lombok.Getter;
| import lombok.RequiredArgsConstructor;
|
| import java.util.Arrays;
|
| /**
| * 交易订单项 - 售后状态
| *
| * @author 芋道源码
| */
| @RequiredArgsConstructor
| @Getter
| public enum TradeOrderItemAfterSaleStatusEnum implements ArrayValuable<Integer> {
|
| NONE(0, "未售后"),
| APPLY(10, "售后中"),
| SUCCESS(20, "售后成功");
|
| public static final Integer[] ARRAYS = Arrays.stream(values()).map(TradeOrderItemAfterSaleStatusEnum::getStatus).toArray(Integer[]::new);
|
| /**
| * 状态值
| */
| private final Integer status;
| /**
| * 状态名
| */
| private final String name;
|
| @Override
| public Integer[] array() {
| return ARRAYS;
| }
|
| /**
| * 判断指定状态,是否正处于【未申请】状态
| *
| * @param status 指定状态
| * @return 是否
| */
| public static boolean isNone(Integer status) {
| return ObjectUtil.equals(status, NONE.getStatus());
| }
|
| }
|
|