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 MesProBatchStatusEnum implements ArrayValuable { DRAFT(10, "草稿"), PRODUCING(20, "生产中"), FINISHED(30, "已完成"), CANCELED(40, "已作废"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesProBatchStatusEnum::getStatus).toArray(Integer[]::new); /** * 状态 */ private final Integer status; /** * 状态名称 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }