package cn.iocoder.yudao.module.wms.enums.inventory; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.AllArgsConstructor; import lombok.Getter; import java.util.Arrays; /** * WMS 库存预留业务类型枚举 * * @author 芋道源码 */ @Getter @AllArgsConstructor public enum WmsReserveBizTypeEnum implements ArrayValuable { SALE(10, "销售预留"), PRODUCE(20, "生产预留"), ; public static final Integer[] ARRAYS = Arrays.stream(values()) .map(WmsReserveBizTypeEnum::getType).toArray(Integer[]::new); /** * 类型 */ private final Integer type; /** * 名称 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }