eight
2024-09-11 0fd05805e138bcd29f75a17f0fbde15a8292238c
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
package cn.lihu.jh.module.ecg.enums;
 
import cn.lihu.jh.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
import java.util.Arrays;
 
/**
 * 通用状态枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum QueueStatusEnum implements IntArrayValuable {
 
    //10:排队中 20:候诊准备 30:就诊中 40:就诊完成 50:过号 60:过期
    WAITING((byte)10, "排队中"),
    READY((byte)20, "候诊准备"),
    ONSTAGE((byte)30, "就诊中"),
    FINISH((byte)40, "就诊完成"),
    PASSED((byte)50, "过号"),
    RECALLED((byte)60, "过号回来");
 
    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(QueueStatusEnum::getStatus).toArray();
 
    /**
     * 状态值
     */
    private final Byte status;
    /**
     * 状态名
     */
    private final String name;
 
    @Override
    public int[] array() {
        return ARRAYS;
    }
 
/*
    public static boolean isEnable(Integer status) {
        return ObjUtil.equal(ENABLE.status, status);
    }
 
    public static boolean isDisable(Integer status) {
        return ObjUtil.equal(DISABLE.status, status);
    }
*/
 
}