package org.jeecg.modules.qms.enums; public enum PlanCategoryEnum { FIRST_INSPECTION, //首检 ROUTING_INSPECTION, //巡检 COMPLETION_INSPECTION; //完工检 public static PlanCategoryEnum fromName(String name) { for (PlanCategoryEnum category : PlanCategoryEnum.values()) { if (category.name().equals(name)) { return category; } } return null; } }