package jnpf.enums.attendance;

import lombok.Getter;

@Getter
public enum NoticeModuleEnum {
    GR_RB(1, "考勤报表"),
    KQZ_SD(2, "考勤组锁定/解锁"),
    KQZ_GLY_BD(3, "考勤组管理员变动"),
    BC_BD(4, "班次变动"),
    KQ_SP(5, "考勤审批"),
    KQZ_BD(6, "考勤组变动"),
    KQ_DK(7, "考勤打卡"),
    KQ_PB(9, "考勤排班"),
    CQJG_BD(8, "出勤结果变动");
    Integer code;
    String msg;

    NoticeModuleEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static NoticeModuleEnum getNoticeEnum(Integer code) {

        NoticeModuleEnum[] values = NoticeModuleEnum.values();
        for (NoticeModuleEnum value : values) {
            if (value.getCode() == code) {
                return value;
            }
        }
        return null;
    }
}
