SignStatusEnum.java 875 Bytes
package com.ruoyi.common;

import static com.ruoyi.common.ConstDriverProperties.BC_TYPE_OUT;

/**
 * 签到状态枚举 大屏
 *
 * @author 20412
 */
public enum SignStatusEnum {
    SIGN_STATUS_ZONE_ENUM(0, "正常"),
    SIGN_STATUS_EMPTY_ENUM(1, "未签"),
    SIGN_STATUS_DELAY_ENUM(2, ""),
    SIGN_STATUS_WINE_ENUM(3, "酒精测试超标");


    SignStatusEnum(Integer status, String description) {
        this.status = status;
        this.description = description;
    }

    private String description;
    private Integer status;

    public Integer getStatus() {
        return this.status;
    }

    public String getDescription() {
        return this.description;
    }

    public String getDescription(String bcType) {
        if (BC_TYPE_OUT.equals(bcType)) {
            return "迟到";
        } else {
            return "晚签";
        }
    }
}