diff --git a/platform-common/src/main/java/com/lyms/platform/common/enums/MakeHospitalEnums.java b/platform-common/src/main/java/com/lyms/platform/common/enums/MakeHospitalEnums.java new file mode 100644 index 0000000..d60144e --- /dev/null +++ b/platform-common/src/main/java/com/lyms/platform/common/enums/MakeHospitalEnums.java @@ -0,0 +1,46 @@ +package com.lyms.platform.common.enums; + +/** + * @auther yangfei + * @createTime 2017年09月15日 13时58分 + * @discription 住院失败原因 + */ +public enum MakeHospitalEnums { + DHWRJT(1, "电话无人接听"), + ZSWQD(2, "暂时未确定"), + TYYBL(3, "他院已办理"), + OTHER(4, "其他"),; + + private int id; + private String name; + + public static String getTitle(int id) { + for (MakeHospitalEnums cfEnums : MakeHospitalEnums.values()) { + if (id == cfEnums.getId()) { + return cfEnums.getName(); + } + } + return ""; + } + + MakeHospitalEnums(int id, String name) { + this.id = id; + this.name = name; + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +}