微信后台-二维码扫描代码初始化-简化,待处理细节
This commit is contained in:
42
entity/src/main/java/com/enums/EnterEnum.java
Normal file
42
entity/src/main/java/com/enums/EnterEnum.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.enums;
|
||||
|
||||
/**
|
||||
* Enum - 入场标志
|
||||
*
|
||||
*/
|
||||
public enum EnterEnum {
|
||||
ENTER(0, "入场"),
|
||||
OUT(1, "出场");
|
||||
public Integer value;
|
||||
public String name;
|
||||
|
||||
EnterEnum(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 EnterEnum getByValue(Integer value) {
|
||||
for (EnterEnum type : EnterEnum.values()) {
|
||||
if (type.value.equals(value)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
39
entity/src/main/java/com/sv/dto/BarCodeResult.java
Normal file
39
entity/src/main/java/com/sv/dto/BarCodeResult.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.sv.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class BarCodeResult implements Serializable {
|
||||
|
||||
private String barcode;
|
||||
|
||||
/**
|
||||
* 0 - 成功 1 - 失败
|
||||
*/
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public String getBarcode() {
|
||||
return barcode;
|
||||
}
|
||||
|
||||
public void setBarcode(String barcode) {
|
||||
this.barcode = barcode;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package com.sv.dto;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class EnterResult {
|
||||
private Integer status;
|
||||
private BigDecimal money;
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public BigDecimal getMoney() {
|
||||
return money;
|
||||
}
|
||||
|
||||
public void setMoney(BigDecimal money) {
|
||||
this.money = money;
|
||||
}
|
||||
}
|
||||
@@ -183,6 +183,11 @@ public class VenueDTO implements Serializable {
|
||||
*/
|
||||
private List<VenuePrice> venuePriceList;
|
||||
|
||||
/**
|
||||
* 展示出厂还是入场按钮
|
||||
*/
|
||||
private Integer enterFlag;
|
||||
|
||||
/**
|
||||
* 设置
|
||||
*
|
||||
@@ -637,4 +642,12 @@ public class VenueDTO implements Serializable {
|
||||
public void setCopyControl(Integer copyControl) {
|
||||
this.copyControl = copyControl;
|
||||
}
|
||||
|
||||
public Integer getEnterFlag() {
|
||||
return enterFlag;
|
||||
}
|
||||
|
||||
public void setEnterFlag(Integer enterFlag) {
|
||||
this.enterFlag = enterFlag;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user