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 MesProWorkRecordTypeEnum implements ArrayValuable { CLOCK_IN(1, "上工"), CLOCK_OUT(2, "下工"); public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesProWorkRecordTypeEnum::getType).toArray(Integer[]::new); /** * 操作类型 */ private final Integer type; /** * 操作名 */ private final String name; @Override public Integer[] array() { return ARRAYS; } }