liu
12 小时以前 66517edf1de22c8203daa256abffddae43bae704
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
package cn.iocoder.yudao.module.mes.enums.pro;
 
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
import java.util.Arrays;
 
/**
 * MES 二维码导出业务类型枚举
 * <p>
 * 导出参数统一为「生成组 UUID」或「生产批次编号」二选一,故不区分具体入口来源。
 */
@Getter
@AllArgsConstructor
public enum MesProQrExportBizTypeEnum implements ArrayValuable<String> {
 
    BAG_LABEL("BAG_LABEL", "袋码二维码标签"),
    BAG_BUSINESS("BAG_BUSINESS", "袋码业务二维码"),
    PALLET_LABEL("PALLET_LABEL", "托盘二维码标签"),
    PALLET_BUSINESS("PALLET_BUSINESS", "托盘业务二维码"),
    BATCH_LABEL("BATCH_LABEL", "批次二维码标签"),
    BATCH_BUSINESS("BATCH_BUSINESS", "批次业务二维码");
 
    public static final String[] ARRAYS = Arrays.stream(values())
            .map(MesProQrExportBizTypeEnum::getType).toArray(String[]::new);
 
    /**
     * 类型标识
     */
    private final String type;
    /**
     * 类型名称
     */
    private final String name;
 
    @Override
    public String[] array() {
        return ARRAYS;
    }
 
}