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 xiaoyi
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum MesProMaintenancePlanTypeEnum implements ArrayValuable<Integer> {
|
|
GRID_OPERATION(1, "电网运行"),
|
POWER_GENERATION(2, "发电"),
|
SUBSTATION_MAINTENANCE(3, "变电运维"),
|
LINE_MAINTENANCE(4, "线路检修");
|
|
public static final Integer[] ARRAYS = Arrays.stream(values())
|
.map(MesProMaintenancePlanTypeEnum::getType).toArray(Integer[]::new);
|
|
/**
|
* 类型值
|
*/
|
private final Integer type;
|
/**
|
* 类型名
|
*/
|
private final String name;
|
|
@Override
|
public Integer[] array() {
|
return ARRAYS;
|
}
|
|
}
|