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);
|
}
|
*/
|
|
}
|