apple支付部分逻辑
This commit is contained in:
@@ -4,29 +4,29 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 订单创建请求DTO
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-01-27
|
||||
*/
|
||||
public class OrderCreateRequest implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 订单名称 */
|
||||
private String orderName;
|
||||
|
||||
|
||||
/** 金额(分) */
|
||||
private Long amount;
|
||||
|
||||
|
||||
/** 支付方式 aliPay/wechatPay/applePay */
|
||||
private String payType;
|
||||
|
||||
/** 套餐类型 1包月 3包季度 6半年 12一年 */
|
||||
|
||||
/** 套餐类型 1 包月 2 包季度 3 半年 4 一年 */
|
||||
private String packageType;
|
||||
|
||||
|
||||
/** 设备类型 android/ios */
|
||||
private String deviceType;
|
||||
|
||||
|
||||
/** 客户端IP */
|
||||
private String clientIp;
|
||||
|
||||
@@ -77,4 +77,4 @@ public class OrderCreateRequest implements Serializable {
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
@@ -9,10 +10,11 @@ import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 order_info
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-03
|
||||
*/
|
||||
@Data
|
||||
public class OrderInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -100,232 +102,4 @@ public class OrderInfo extends BaseEntity
|
||||
/** 乐观锁版本号 */
|
||||
@Excel(name = "乐观锁版本号")
|
||||
private Long version;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderName(String orderName)
|
||||
{
|
||||
this.orderName = orderName;
|
||||
}
|
||||
|
||||
public String getOrderName()
|
||||
{
|
||||
return orderName;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setAmount(Long amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Long getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setPayType(String payType)
|
||||
{
|
||||
this.payType = payType;
|
||||
}
|
||||
|
||||
public String getPayType()
|
||||
{
|
||||
return payType;
|
||||
}
|
||||
|
||||
public void setPayTime(Date payTime)
|
||||
{
|
||||
this.payTime = payTime;
|
||||
}
|
||||
|
||||
public Date getPayTime()
|
||||
{
|
||||
return payTime;
|
||||
}
|
||||
|
||||
public void setPayStatus(Long payStatus)
|
||||
{
|
||||
this.payStatus = payStatus;
|
||||
}
|
||||
|
||||
public Long getPayStatus()
|
||||
{
|
||||
return payStatus;
|
||||
}
|
||||
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Date endTime)
|
||||
{
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Date getEndTime()
|
||||
{
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setIdDel(Long idDel)
|
||||
{
|
||||
this.idDel = idDel;
|
||||
}
|
||||
|
||||
public Long getIdDel()
|
||||
{
|
||||
return idDel;
|
||||
}
|
||||
|
||||
public void setCallTime(Date callTime)
|
||||
{
|
||||
this.callTime = callTime;
|
||||
}
|
||||
|
||||
public Date getCallTime()
|
||||
{
|
||||
return callTime;
|
||||
}
|
||||
|
||||
public void setPackageType(String packageType)
|
||||
{
|
||||
this.packageType = packageType;
|
||||
}
|
||||
|
||||
public String getPackageType()
|
||||
{
|
||||
return packageType;
|
||||
}
|
||||
|
||||
public void setCallbackContent(String callbackContent)
|
||||
{
|
||||
this.callbackContent = callbackContent;
|
||||
}
|
||||
|
||||
public String getCallbackContent()
|
||||
{
|
||||
return callbackContent;
|
||||
}
|
||||
|
||||
public void setTradeNo(String tradeNo)
|
||||
{
|
||||
this.tradeNo = tradeNo;
|
||||
}
|
||||
|
||||
public String getTradeNo()
|
||||
{
|
||||
return tradeNo;
|
||||
}
|
||||
|
||||
public void setRefundAmount(Long refundAmount)
|
||||
{
|
||||
this.refundAmount = refundAmount;
|
||||
}
|
||||
|
||||
public Long getRefundAmount()
|
||||
{
|
||||
return refundAmount;
|
||||
}
|
||||
|
||||
public void setRefundTime(Date refundTime)
|
||||
{
|
||||
this.refundTime = refundTime;
|
||||
}
|
||||
|
||||
public Date getRefundTime()
|
||||
{
|
||||
return refundTime;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp)
|
||||
{
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
public String getClientIp()
|
||||
{
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setVersion(Long version)
|
||||
{
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Long getVersion()
|
||||
{
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderName", getOrderName())
|
||||
.append("userId", getUserId())
|
||||
.append("amount", getAmount())
|
||||
.append("payType", getPayType())
|
||||
.append("payTime", getPayTime())
|
||||
.append("payStatus", getPayStatus())
|
||||
.append("startTime", getStartTime())
|
||||
.append("endTime", getEndTime())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("idDel", getIdDel())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("callTime", getCallTime())
|
||||
.append("packageType", getPackageType())
|
||||
.append("callbackContent", getCallbackContent())
|
||||
.append("tradeNo", getTradeNo())
|
||||
.append("refundAmount", getRefundAmount())
|
||||
.append("refundTime", getRefundTime())
|
||||
.append("clientIp", getClientIp())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("version", getVersion())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.ruoyi.common.core.domain.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
@@ -14,6 +15,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
|
||||
* @author ruoyi
|
||||
* @date 2025-10-27
|
||||
*/
|
||||
@Data
|
||||
public class Product extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -35,7 +37,7 @@ public class Product extends BaseEntity
|
||||
|
||||
/** 分类ID */
|
||||
@Excel(name = "分类ID")
|
||||
private Long categoryId;
|
||||
private String categoryId;
|
||||
|
||||
/** 商品类型:1-包月,2-包季,3-半年 */
|
||||
@Excel(name = "商品类型:1-包月,2-包季,3-半年 ")
|
||||
@@ -79,174 +81,4 @@ public class Product extends BaseEntity
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date updatedAt;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setProductType(Integer productType)
|
||||
{
|
||||
this.productType = productType;
|
||||
}
|
||||
|
||||
public Integer getProductType()
|
||||
{
|
||||
return productType;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setOriginalPrice(BigDecimal originalPrice)
|
||||
{
|
||||
this.originalPrice = originalPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getOriginalPrice()
|
||||
{
|
||||
return originalPrice;
|
||||
}
|
||||
|
||||
public void setCurrentPrice(BigDecimal currentPrice)
|
||||
{
|
||||
this.currentPrice = currentPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getCurrentPrice()
|
||||
{
|
||||
return currentPrice;
|
||||
}
|
||||
|
||||
public void setMonthlyDuration(Long monthlyDuration)
|
||||
{
|
||||
this.monthlyDuration = monthlyDuration;
|
||||
}
|
||||
|
||||
public Long getMonthlyDuration()
|
||||
{
|
||||
return monthlyDuration;
|
||||
}
|
||||
|
||||
public void setQuarterlyDuration(Long quarterlyDuration)
|
||||
{
|
||||
this.quarterlyDuration = quarterlyDuration;
|
||||
}
|
||||
|
||||
public Long getQuarterlyDuration()
|
||||
{
|
||||
return quarterlyDuration;
|
||||
}
|
||||
|
||||
public void setStock(Long stock)
|
||||
{
|
||||
this.stock = stock;
|
||||
}
|
||||
|
||||
public Long getStock()
|
||||
{
|
||||
return stock;
|
||||
}
|
||||
|
||||
public void setSales(Long sales)
|
||||
{
|
||||
this.sales = sales;
|
||||
}
|
||||
|
||||
public Long getSales()
|
||||
{
|
||||
return sales;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt)
|
||||
{
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt()
|
||||
{
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("productId", getProductId())
|
||||
.append("name", getName())
|
||||
.append("description", getDescription())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("productType", getProductType())
|
||||
.append("status", getStatus())
|
||||
.append("originalPrice", getOriginalPrice())
|
||||
.append("currentPrice", getCurrentPrice())
|
||||
.append("monthlyDuration", getMonthlyDuration())
|
||||
.append("quarterlyDuration", getQuarterlyDuration())
|
||||
.append("stock", getStock())
|
||||
.append("sales", getSales())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("updatedAt", getUpdatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user