package cn.iocoder.yudao.module.mes.enums.safety;
|
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
/**
|
* 安全生产 - 巡检点位类型枚举
|
*
|
* @author 超级管理员
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum SafetyInspectionPointTypeEnum {
|
|
HIGH_VOLTAGE_ROOM("HIGH_VOLTAGE_ROOM", "高压配电室"),
|
UNIT_AREA("UNIT_AREA", "机组区"),
|
DANGER_CHEMICAL("DANGER_CHEMICAL", "危化品库"),
|
FIRE_AREA("FIRE_AREA", "消防重点部位"),
|
WORKSHOP("WORKSHOP", "生产车间"),
|
OTHER("OTHER", "其他");
|
|
private final String type;
|
private final String name;
|
|
public static String getNameByType(String type) {
|
for (SafetyInspectionPointTypeEnum value : values()) {
|
if (value.getType().equals(type)) {
|
return value.getName();
|
}
|
}
|
return type;
|
}
|
|
}
|