package org.jeecg.modules.eam.constant; public enum TechnicalStatusChangeReasonEnum { EQUIPMENT_MAJOR, //设备大修 EQUIPMENT_RELOCATION, //设备搬迁 EQUIPMENT_RETROFITTING, //设备改造 OTHER, //其他 ; public static TechnicalStatusChangeReasonEnum getInstance(String code) { TechnicalStatusChangeReasonEnum[] values = TechnicalStatusChangeReasonEnum.values(); for (TechnicalStatusChangeReasonEnum value : values) { if (value.name().equals(code)) { return value; } } return null; } }