You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
857 B
39 lines
857 B
package com.ynxbd.common.bean.enums;
|
|
|
|
import lombok.ToString;
|
|
|
|
@ToString
|
|
public enum HisAuthAgentRelationEnum {
|
|
_01(1, "配偶"),
|
|
_02(2, "父母"),
|
|
_03(3, "子女"),
|
|
_04(4, "兄弟"),
|
|
_05(5, "姐妹"),
|
|
_06(6, "祖父母"),
|
|
_07(7, "外祖父母"),
|
|
_08(8, "孙子女"),
|
|
_09(9, "外孙子女"),
|
|
;
|
|
|
|
public final Integer CODE;
|
|
public final String NAME;
|
|
|
|
HisAuthAgentRelationEnum(Integer CODE, String NAME) {
|
|
this.CODE = CODE;
|
|
this.NAME = NAME;
|
|
}
|
|
|
|
|
|
public static HisAuthAgentRelationEnum findEnumByName(String name) {
|
|
if (name == null) {
|
|
return null;
|
|
}
|
|
for (HisAuthAgentRelationEnum item : HisAuthAgentRelationEnum.values()) {
|
|
if(item.NAME.equals(name)) {
|
|
return item;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|