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;
|
}
|
|
}
|