扫描二维码入场逻辑
This commit is contained in:
42
entity/src/main/java/com/enums/BarCodeStatusEnum.java
Normal file
42
entity/src/main/java/com/enums/BarCodeStatusEnum.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 入场标志
|
||||
*
|
||||
*/
|
||||
public enum BarCodeStatusEnum {
|
||||
INIT(0, "未核销"),
|
||||
USED(1, "核销");
|
||||
public Integer value;
|
||||
public String name;
|
||||
|
||||
BarCodeStatusEnum(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 BarCodeStatusEnum getByValue(Integer value) {
|
||||
for (BarCodeStatusEnum type : BarCodeStatusEnum.values()) {
|
||||
if (type.value.equals(value)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ package com.enums;
|
||||
*
|
||||
*/
|
||||
public enum MoneyLogEnum {
|
||||
JOIN(1, "进场"),
|
||||
JOIN(1, "扫码订单"),
|
||||
VIPCARD(2, "购买会员卡"),
|
||||
BUY_LESSON(3, "购买课程"),
|
||||
RECHARGE(4, "充值"),
|
||||
|
||||
Reference in New Issue
Block a user