refactor.trade: 移除 Kd100ExpressQueryRespDTO 中的冗余字段

- 删除了 Kd100ExpressQueryRespDTO 类中的 timeStr 字段
- 保留了已有的 time 字段,用于表示轨迹发生时间
This commit is contained in:
ningjingzhiyuan1024
2025-07-05 16:18:06 +08:00
parent c611f1ad15
commit 9241045365

View File

@@ -59,12 +59,9 @@ public class Kd100ExpressQueryRespDTO {
/**
* 轨迹发生时间
*/
private String timeStr;
@JsonProperty("time")
public void parseTime(String timeStr) {
this.time = LocalDateTime.parse(timeStr, DateTimeFormatter.ofPattern(FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND));
}
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
private LocalDateTime time;
/**
* 轨迹描述