新增判断用户是否在场内逻辑,新增清场功能,修改二维码多样性
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 入场支付类型
|
||||
* Enum - 篮球入场支付类型
|
||||
*
|
||||
*/
|
||||
public enum EnterVenuePayTypeEnum {
|
||||
WEI_XIN(1, "微信"),
|
||||
WEI_XIN(1, "余额"),
|
||||
MEMBER_CARD(2, "会员卡");
|
||||
public Integer value;
|
||||
public String name;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 删除标志位
|
||||
* Enum - 用户账号账单支付方式 目前入场记录和改支付方式不一致!!
|
||||
*
|
||||
*/
|
||||
public enum PayTypeEnum {
|
||||
|
||||
42
entity/src/main/java/com/enums/StayEnum.java
Normal file
42
entity/src/main/java/com/enums/StayEnum.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 入场标志
|
||||
*
|
||||
*/
|
||||
public enum StayEnum {
|
||||
OUT(0, "场外"),
|
||||
IN(1, "场内");
|
||||
public Integer value;
|
||||
public String name;
|
||||
|
||||
StayEnum(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 StayEnum getByValue(Integer value) {
|
||||
for (StayEnum type : StayEnum.values()) {
|
||||
if (type.value.equals(value)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user