From dbd0433845b9ec5d4bdd395a6b1aa0d902606f8e Mon Sep 17 00:00:00 2001 From: yangfei Date: Mon, 18 Sep 2017 11:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AC=E5=8A=9B=E8=AF=8A=E6=96=AD=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/common/enums/MakeHospitalEnums.java | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 platform-common/src/main/java/com/lyms/platform/common/enums/MakeHospitalEnums.java 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; + } +} -- 1.8.3.1