Commit 8c6dc8fcf98b139c1b26a50ca071f1f05bd23d6b
Committed by
Gitee
!1381 refactor.trade: 优化 Kd100ExpressQueryRespDTO 中时间字段的处理
Merge pull request !1381 from binny1024/master-jdk17-fix-kd100-time
Showing
1 changed file
with
3 additions
and
1 deletions
yudao-module-mall/yudao-module-trade/src/main/java/cn/iocoder/yudao/module/trade/framework/delivery/core/client/dto/kd100/Kd100ExpressQueryRespDTO.java
| ... | ... | @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; |
| 5 | 5 | import lombok.Data; |
| 6 | 6 | |
| 7 | 7 | import java.time.LocalDateTime; |
| 8 | +import java.time.format.DateTimeFormatter; | |
| 8 | 9 | import java.util.List; |
| 9 | 10 | |
| 10 | 11 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| ... | ... | @@ -58,9 +59,10 @@ public class Kd100ExpressQueryRespDTO { |
| 58 | 59 | /** |
| 59 | 60 | * 轨迹发生时间 |
| 60 | 61 | */ |
| 62 | + @JsonProperty("time") | |
| 61 | 63 | @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) |
| 64 | + @JsonDeserialize(using = LocalDateTimeDeserializer.class) | |
| 62 | 65 | private LocalDateTime time; |
| 63 | - | |
| 64 | 66 | /** |
| 65 | 67 | * 轨迹描述 |
| 66 | 68 | */ | ... | ... |