refactor.trade: 移除 Kd100ExpressQueryRespDTO 中的冗余字段
- 删除了 Kd100ExpressQueryRespDTO 类中的 timeStr 字段 - 保留了已有的 time 字段,用于表示轨迹发生时间
This commit is contained in:
@@ -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;
|
||||
/**
|
||||
* 轨迹描述
|
||||
|
||||
Reference in New Issue
Block a user