扫描二维码入场逻辑

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, "充值"),

View File

@@ -7,9 +7,9 @@ public class BarCodeResult implements Serializable {
private String barcode;
/**
* 0 - 成功 1 - 失败
* 返回的字符串,根据结果显示
*/
private String code;
private Integer flg;
private String msg;
@@ -21,12 +21,12 @@ public class BarCodeResult implements Serializable {
this.barcode = barcode;
}
public String getCode() {
return code;
public Integer getFlg() {
return flg;
}
public void setCode(String code) {
this.code = code;
public void setFlg(Integer flg) {
this.flg = flg;
}
public String getMsg() {

View File

@@ -0,0 +1,122 @@
package com.sv.entity;
import java.util.Date;
public class Barcode {
private Integer id;
private String barcode;
private Integer status;
private Integer memberId;
private Integer venueId;
private Integer enter;
private Integer createdId;
private Integer modifiedId;
private Date createdTime;
private Date modifiedTime;
public Barcode(Integer id, String barcode, Integer status, Integer memberId, Integer venueId, Integer enter, Integer createdId, Integer modifiedId, Date createdTime, Date modifiedTime) {
this.id = id;
this.barcode = barcode;
this.status = status;
this.memberId = memberId;
this.venueId = venueId;
this.enter = enter;
this.createdId = createdId;
this.modifiedId = modifiedId;
this.createdTime = createdTime;
this.modifiedTime = modifiedTime;
}
public Barcode() {
super();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode == null ? null : barcode.trim();
}
public Integer getMemberId() {
return memberId;
}
public void setMemberId(Integer memberId) {
this.memberId = memberId;
}
public Integer getVenueId() {
return venueId;
}
public void setVenueId(Integer venueId) {
this.venueId = venueId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getEnter() {
return enter;
}
public void setEnter(Integer enter) {
this.enter = enter;
}
public Integer getCreatedId() {
return createdId;
}
public void setCreatedId(Integer createdId) {
this.createdId = createdId;
}
public Integer getModifiedId() {
return modifiedId;
}
public void setModifiedId(Integer modifiedId) {
this.modifiedId = modifiedId;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public Date getModifiedTime() {
return modifiedTime;
}
public void setModifiedTime(Date modifiedTime) {
this.modifiedTime = modifiedTime;
}
}

View File

@@ -35,10 +35,6 @@ public class Device implements Serializable {
private Integer venueId;
private Integer venueType;
private Integer bindMember;
private Date bindTime;
/**
* 创建者编号
*/
@@ -244,20 +240,4 @@ public class Device implements Serializable {
public void setVenueType(Integer venueType) {
this.venueType = venueType;
}
public Integer getBindMember() {
return bindMember;
}
public void setBindMember(Integer bindMember) {
this.bindMember = bindMember;
}
public Date getBindTime() {
return bindTime;
}
public void setBindTime(Date bindTime) {
this.bindTime = bindTime;
}
}