package cn.iocoder.yudao.module.mes.enums.wm; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.AllArgsConstructor; import lombok.Getter; import java.util.Arrays; /** * MES SN 码状态枚举 * * @author 超级管理员 */ @Getter @AllArgsConstructor public enum MesWmSnStatusEnum implements ArrayValuable { IN_STOCK(1, "在库"), OUT_STOCK(2, "已出库"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesWmSnStatusEnum::getStatus).toArray(Integer[]::new); /** * 状态值 */ private final Integer status; /** * 状态名 */ private final String label; @Override public Integer[] array() { return ARRAYS; } }