1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| package com.iailab.module.pms.coalquality.common.enums;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| /**
| * @author PanZhibao
| * @Description
| * @createTime 2023年12月15日 14:00:00
| */
| @Getter
| @AllArgsConstructor
| public enum BcEnums {
|
| BB("bb", "白班"),
| YB("yb", "夜班");
| private String code;
| private String desc;
|
| public static BcEnums getEumByCode(String code) {
| if (code == null) {
| return null;
| }
|
| for (BcEnums statusEnum : BcEnums.values()) {
| if (statusEnum.getCode().equals(code)) {
| return statusEnum;
| }
| }
| return null;
| }
| }
|
|