SignStatusEnum.java
875 Bytes
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
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 "晚签";
}
}
}