From fd9b9b6580d8f9d68e181e212fc0eda0b85be2f8 Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Tue, 27 Aug 2024 19:27:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(payment-param):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5=E5=8F=8A?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从PaymentParam类中移除createTime字段,以适应新的业务需求。 - 调整returnUrl字段的位置,提高字段的逻辑分组性。 - 添加了DateTimeFormat和JsonFormat注解,以确保日期格式的正确性。 --- .../common/system/domain/PaymentParam.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/muyu/common/system/domain/PaymentParam.java b/src/main/java/com/muyu/common/system/domain/PaymentParam.java index 66d51c3..ef98645 100644 --- a/src/main/java/com/muyu/common/system/domain/PaymentParam.java +++ b/src/main/java/com/muyu/common/system/domain/PaymentParam.java @@ -1,8 +1,11 @@ package com.muyu.common.system.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; +import java.util.Date; /** * @Author: wangxinyuan @@ -12,17 +15,18 @@ import java.math.BigDecimal; public class PaymentParam { - /** - * 跳转路径 - */ - private String returnUrl; - + private Integer id; /** * 异步跳转路径 */ private String notifyUrl; + /** + * 跳转路径 + */ + private String returnUrl; + /** * 订单号 */ @@ -43,4 +47,9 @@ public class PaymentParam { */ private String productCode; + + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + }