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 袋码批量生成业务类型枚举
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum MesProBagCodeGenerateBizTypeEnum implements ArrayValuable<String> {
|
|
/**
|
* 数据包:按计量单位类型换算,N 袋类型同时生成托盘
|
*/
|
PACKAGE("PACKAGE", "数据包"),
|
/**
|
* 原始数据:仅按数量生成,不生成托盘
|
*/
|
RAW("RAW", "原始数据");
|
|
public static final String[] ARRAYS = Arrays.stream(values())
|
.map(MesProBagCodeGenerateBizTypeEnum::getType).toArray(String[]::new);
|
|
/**
|
* 类型标识
|
*/
|
private final String type;
|
/**
|
* 类型名称
|
*/
|
private final String name;
|
|
@Override
|
public String[] array() {
|
return ARRAYS;
|
}
|
|
}
|