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
| package cn.iocoder.yudao.module.aftersales.enums;
|
| import cn.iocoder.yudao.framework.common.core.ArrayValuable;
| import lombok.Getter;
| import lombok.RequiredArgsConstructor;
|
| import java.util.Arrays;
|
| /**
| * 售后退货状态枚举
| */
| @RequiredArgsConstructor
| @Getter
| public enum AfterSaleReturnStatusEnum implements ArrayValuable<Integer> {
|
| DRAFT(0, "草稿"),
| AUDITING(10, "销售审核中"),
| APPROVED(20, "审核通过-已同步MES"),
| INSPECTING(30, "检验中"),
| INSPECTED(40, "检验完成"),
| INBOUND(50, "已入库"),
| REFUNDED(60, "退款/换货完成"),
| CLOSED(70, "已关闭"),
| CANCELED(99, "已取消");
|
| public static final Integer[] ARRAYS = Arrays.stream(values())
| .map(AfterSaleReturnStatusEnum::getStatus).toArray(Integer[]::new);
|
| private final Integer status;
| private final String name;
|
| @Override
| public Integer[] array() {
| return ARRAYS;
| }
|
| }
|
|