Browse Source
- 在 ShopOrderController 中添加更新订单支付状态的 API 接口- 在 ShopOrderService 中实现 getByOrderNo 和 syncPaymentStatus 方法- 在 WechatNativeStrategy 中添加创建订单和查询支付状态的日志记录 - 优化订单号生成逻辑,支持使用请求中的订单号pan
6 changed files with 180 additions and 5 deletions
@ -0,0 +1,32 @@ |
|||||
|
package com.gxwebsoft.shop.dto; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
/** |
||||
|
* 更新订单支付状态请求DTO |
||||
|
* |
||||
|
* @author 科技小王子 |
||||
|
* @since 2025-08-30 |
||||
|
*/ |
||||
|
@Data |
||||
|
@Schema(name = "UpdatePaymentStatusRequest", description = "更新订单支付状态请求") |
||||
|
public class UpdatePaymentStatusRequest { |
||||
|
|
||||
|
@Schema(description = "订单号", required = true) |
||||
|
@NotBlank(message = "订单号不能为空") |
||||
|
private String orderNo; |
||||
|
|
||||
|
@Schema(description = "支付状态:1=支付成功,0=支付失败", required = true) |
||||
|
@NotNull(message = "支付状态不能为空") |
||||
|
private Integer paymentStatus; |
||||
|
|
||||
|
@Schema(description = "微信交易号") |
||||
|
private String transactionId; |
||||
|
|
||||
|
@Schema(description = "支付时间,格式:yyyy-MM-dd HH:mm:ss") |
||||
|
private String payTime; |
||||
|
} |
Loading…
Reference in new issue