package org.jeecg.modules.lsw.enums; public enum MaterialCategoryEnum { FINISHED_PRODUCT, //成品 OUTER_FLANGE, //外法兰 INNER_FLANGE, //内法兰 COMPONENTS, //配件 BLANK; //毛坯 public static MaterialCategoryEnum fromName(String name) { for (MaterialCategoryEnum category : MaterialCategoryEnum.values()) { if (category.name().equals(name)) { return category; } } return null; } }