package cn.iocoder.yudao.module.mes.enums.cal; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.AllArgsConstructor; import lombok.Getter; import java.util.Arrays; /** * MES 员工排班明细来源枚举 * * @author 超级管理员 */ @Getter @AllArgsConstructor public enum MesCalScheduleDetailSourceEnum implements ArrayValuable { AUTO(1, "自动生成"), MANUAL(2, "人工调整"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesCalScheduleDetailSourceEnum::getSource).toArray(Integer[]::new); /** * 来源值 */ private final Integer source; /** * 来源名 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }