ZL.java
1.37 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.bsth.data.zndd.voice;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public enum ZL {
LJBC(new Integer[]{2,4}, "临加班次"),
LJCCBC(new Integer[]{2,4,7}, "临加出场班次"),
LJJCBC(new Integer[]{2,4,13}, "临加进场班次"),
TZDF(new Integer[]{3,5}, "调整待发"),
TZSF(new Integer[]{3,6}, "调整实发"),
QXBC(new Integer[]{1,4}, "取消班次"),
QXSF(new Integer[]{1,6}, "取消实发"),
KQ(new Integer[]{8}, "开启智能调度"),
GB(new Integer[]{9}, "关闭智能调度"),
zdzdbc(new Integer[]{10,11,12}, "添加一个xx到xx的班次");
private Integer[] codes;
private String description;
ZL(Integer[] codes, String description) {
this.codes = codes;
this.description = description;
}
public Integer[] getCodes() {
return codes;
}
public void setCodes(Integer[] codes) {
this.codes = codes;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public static boolean match(ZL zl,String str){
Integer[] ints=zl.codes;
List<Integer> list= Arrays.asList(ints);
Set<String> ml=new HashSet<>();
GJC.nestedLoop(list,str,ml);
return false;
}
}