package jnpf.limsEntity; /** * LIMS 请验分类枚举 */ public enum QingyanFenlei { WENDINGXING("wendingxing", "稳定性"); private final String code; private final String label; QingyanFenlei(String code, String label) { this.code = code; this.label = label; } public String getCode() { return code; } public String getLabel() { return label; } public static QingyanFenlei fromCode(String code) { for (QingyanFenlei status : values()) { if (status.code.equals(code)) { return status; } } throw new IllegalArgumentException("未知状态: " + code); } }