扫描二维码入场逻辑

This commit is contained in:
2023-09-05 09:27:00 +08:00
parent f0ef32ffc6
commit 52aa9659a2
41 changed files with 1562 additions and 492 deletions

View 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;
}
}

View File

@@ -5,7 +5,7 @@ package com.enums;
*
*/
public enum MoneyLogEnum {
JOIN(1, "进场"),
JOIN(1, "扫码订单"),
VIPCARD(2, "购买会员卡"),
BUY_LESSON(3, "购买课程"),
RECHARGE(4, "充值"),