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 MesProBatchWorkerTypeEnum implements ArrayValuable { LEADER(10, "组长"), OPERATOR(20, "操作工"), PACKER(30, "包装工"), INSPECTOR(40, "质检员"), OTHER(50, "其他"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesProBatchWorkerTypeEnum::getType).toArray(Integer[]::new); /** * 类型 */ private final Integer type; /** * 类型名称 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }