最新逻辑 (超过1小时半小时收半小时钱、多余的收一小时钱,没有宽限期) 增加篮球入场视图,显示订单记录信息。
This commit is contained in:
43
entity/src/main/java/com/enums/EnterOrderStatusEnum.java
Normal file
43
entity/src/main/java/com/enums/EnterOrderStatusEnum.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 入场标志
|
||||
*
|
||||
*/
|
||||
public enum EnterOrderStatusEnum {
|
||||
USING(0, "使用中"),
|
||||
PAYING(1, "待结算"),
|
||||
OVER(2, "已结算");
|
||||
public Integer value;
|
||||
public String name;
|
||||
|
||||
EnterOrderStatusEnum(Integer value, String name) {
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(Integer value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static EnterOrderStatusEnum getByValue(Integer value) {
|
||||
for (EnterOrderStatusEnum type : EnterOrderStatusEnum.values()) {
|
||||
if (type.value.equals(value)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user