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 袋码(一袋一码)状态枚举 * * @author 超级管理员 */ @Getter @AllArgsConstructor public enum MesProBagCodeStatusEnum implements ArrayValuable { GENERATED(10, "已生成"), PRINTED(20, "已导出印刷"), CANCELED(30, "已作废"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesProBagCodeStatusEnum::getStatus).toArray(Integer[]::new); /** * 状态 */ private final Integer status; /** * 状态名称 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }