3 天以前 b852254d90e7d1955db31db154193ec8ee84d8b3
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
51
52
53
54
55
56
57
58
59
60
61
62
package cn.iocoder.yudao.module.mes.enums.wm;
 
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import cn.iocoder.yudao.module.mes.enums.MesOrderStatusConstants;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
import java.util.Arrays;
 
/**
 * MES 盘点任务状态枚举
 *
 * @author 超级管理员
 */
@Getter
@AllArgsConstructor
public enum MesWmStockTakingTaskStatusEnum implements ArrayValuable<Integer> {
 
    /**
     * 草稿
     *
     * 对应 MesWmStockTakingTaskService#createStockTakingTask 方法
     */
    PREPARE(MesOrderStatusConstants.PREPARE, "草稿"),
    /**
     * 盘点中(含盘点结果审批中)
     *
     * 对应 MesWmStockTakingTaskService#submitStockTakingTask 开始盘点、
     * #submitStockTakingResultApproval 提交结果审批
     */
    APPROVING(MesOrderStatusConstants.APPROVING, "盘点中"),
    /**
     * 已完成
     *
     * 盘点结果审批通过后,由结果审批回调置为已完成并自动核销差异
     */
    FINISHED(MesOrderStatusConstants.FINISHED, "已完成"),
    /**
     * 已取消
     *
     * 对应 MesWmStockTakingTaskService#cancelStockTakingTask 方法
     */
    CANCELED(MesOrderStatusConstants.CANCELLED, "已取消");
 
    public static final Integer[] ARRAYS = Arrays.stream(values())
            .map(MesWmStockTakingTaskStatusEnum::getStatus).toArray(Integer[]::new);
 
    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名称
     */
    private final String name;
 
    @Override
    public Integer[] array() {
        return ARRAYS;
    }
 
}