ZL.java 1.37 KB
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;
    }


}