fix - 用户可能会有多个订单的情况优化。保持订单幂等。
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.sv.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@@ -13,6 +15,17 @@ public class BasketEnterResult implements Serializable {
|
||||
|
||||
private BigDecimal money;
|
||||
|
||||
private String orderSn;
|
||||
|
||||
@JsonProperty("order_sn")
|
||||
public String getOrderSn() {
|
||||
return orderSn;
|
||||
}
|
||||
|
||||
public void setOrderSn(String orderSn) {
|
||||
this.orderSn = orderSn;
|
||||
}
|
||||
|
||||
public BigDecimal getMoney() {
|
||||
return money;
|
||||
}
|
||||
|
||||
42
entity/src/main/java/com/sv/dto/api/BasketballPayResult.java
Normal file
42
entity/src/main/java/com/sv/dto/api/BasketballPayResult.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.sv.dto.api;
|
||||
|
||||
import com.sv.dto.api.wechat.OrderPaySignResponse;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class BasketballPayResult implements Serializable {
|
||||
|
||||
private Boolean paidFlag;
|
||||
|
||||
private String orderSn;
|
||||
|
||||
private OrderPaySignResponse.WechatPayParam wechatPayParam;
|
||||
|
||||
@JsonProperty("paid_flag")
|
||||
public Boolean getPaidFlag() {
|
||||
return paidFlag;
|
||||
}
|
||||
|
||||
public void setPaidFlag(Boolean paidFlag) {
|
||||
this.paidFlag = paidFlag;
|
||||
}
|
||||
|
||||
@JsonProperty("order_sn")
|
||||
public String getOrderSn() {
|
||||
return orderSn;
|
||||
}
|
||||
|
||||
public void setOrderSn(String orderSn) {
|
||||
this.orderSn = orderSn;
|
||||
}
|
||||
|
||||
@JsonProperty("wechatpay")
|
||||
public OrderPaySignResponse.WechatPayParam getWechatPayParam() {
|
||||
return wechatPayParam;
|
||||
}
|
||||
|
||||
public void setWechatPayParam(OrderPaySignResponse.WechatPayParam wechatPayParam) {
|
||||
this.wechatPayParam = wechatPayParam;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user