支付记录 状态

This commit is contained in:
2025-11-19 14:02:32 +08:00
parent 8d365b302a
commit 7aa1e4f215
3 changed files with 28 additions and 59 deletions

View File

@@ -89,6 +89,10 @@ public class OrderPayment implements Serializable {
* 支付相应结果 json
*/
private String respJson;
/**
* 支付状态success, fail, init
*/
private String payStatus;
@Column(onInsertValue = "now()")
private LocalDateTime createTime;
@@ -107,6 +111,7 @@ public class OrderPayment implements Serializable {
this.orderNo = orderNo;
this.authCode = authCode;
this.amount = amount;
this.payStatus = "init";
}
public OrderPayment(@NonNull Long shopId,@NonNull Long sourceId, @NotBlank String payType, @NotBlank String orderNo,
@@ -118,5 +123,6 @@ public class OrderPayment implements Serializable {
this.authCode = authCode;
this.amount = amount;
this.relatedId = relatedId;
this.payStatus = "init";
}
}