package cn.iocoder.yudao.module.mes.enums.qc; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.AllArgsConstructor; import lombok.Getter; import java.util.Arrays; /** * MES 质检审核类型枚举(用于审核人配置) * * @author 超级管理员 */ @Getter @AllArgsConstructor public enum MesQcApprovalTypeEnum implements ArrayValuable { SEED_QUALITY(1, "种子质检"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesQcApprovalTypeEnum::getType).toArray(Integer[]::new); /** * 类型值 */ private final Integer type; /** * 类型名 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }