Commit 0707bfa348a0a7cd05e5bb932d3d4dc3b8cacc1d
1 parent
8e77d3cff3
Exists in
master
and in
1 other branch
孕妇分娩后 变成产妇
Showing 1 changed file with 12 additions and 2 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/ZhiChenEnums.java
View file @
0707bfa
... | ... | @@ -2,12 +2,22 @@ |
2 | 2 | |
3 | 3 | /** |
4 | 4 | * 医院职称 |
5 | - * | |
5 | + *医生的用小于10的数字,护士的用大于10的数字 | |
6 | 6 | * Created by Administrator on 2016/7/27 0027. |
7 | 7 | */ |
8 | 8 | public enum ZhiChenEnums { |
9 | 9 | |
10 | - DOCTOR("医生",1),HUSHI("护士",2),ZHIGONG("职工",3),QITA("其他",4); | |
10 | + DOCTOR("住院医师",1),DOCTOR1("主治医师",2),DOCTOR2("副主任医师",3),DOCTOR3("主任医师",4) | |
11 | + | |
12 | + ,HUSHI("护士",11),HUSHI1("护师",12),HUSHI2("主管护师",13),HUSHI3("副主任护师",14),HUSHI4("主任护师",15); | |
13 | + | |
14 | + //是否是医生 医生id小于10 | |
15 | + public static boolean isDoctor(int id){ | |
16 | + return id<10; | |
17 | + } | |
18 | + public static boolean isDoctor(ZhiChenEnums id){ | |
19 | + return id.getId()<10; | |
20 | + } | |
11 | 21 | |
12 | 22 | private ZhiChenEnums(String name,Integer id){ |
13 | 23 | this.id=id; |