|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+package com.sundot.airport.common.enums;
|
|
|
2
|
+
|
|
|
3
|
+import lombok.AllArgsConstructor;
|
|
|
4
|
+import lombok.Getter;
|
|
|
5
|
+
|
|
|
6
|
+/**
|
|
|
7
|
+ * 考核指标表检查部门类型枚举
|
|
|
8
|
+ */
|
|
|
9
|
+@Getter
|
|
|
10
|
+@AllArgsConstructor
|
|
|
11
|
+public enum BasePerformanceIndicatorQcDeptTypeEnum {
|
|
|
12
|
+
|
|
|
13
|
+ SOC("SOC", "SOC"),
|
|
|
14
|
+ STATION_QC("STATION_QC", "站品控"),
|
|
|
15
|
+ BRIGADE_QC("BRIGADE_QC", "大队品控"),
|
|
|
16
|
+ BRIGADE_SUPERVISOR("BRIGADE_SUPERVISOR", "大队主管"),
|
|
|
17
|
+ OTHER("OTHER", "其他");
|
|
|
18
|
+
|
|
|
19
|
+ private final String code;
|
|
|
20
|
+ private final String desc;
|
|
|
21
|
+
|
|
|
22
|
+ public static BasePerformanceIndicatorQcDeptTypeEnum getByCode(String code) {
|
|
|
23
|
+ for (BasePerformanceIndicatorQcDeptTypeEnum itemEnum : values()) {
|
|
|
24
|
+ if (itemEnum.getCode().equals(code)) {
|
|
|
25
|
+ return itemEnum;
|
|
|
26
|
+ }
|
|
|
27
|
+ }
|
|
|
28
|
+ return null;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+}
|