|
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static cn.newfeifan.mall.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
@@ -12,7 +13,6 @@ import static cn.newfeifan.mall.framework.common.util.date.DateUtils.TIME_ZONE_D
|
|
|
|
|
|
/**
|
|
|
* 快递 100 实时快递查询 Resp DTO
|
|
|
- *
|
|
|
* 参见 <a href="https://api.kuaidi100.com/document/5f0ffb5ebc8da837cbd8aefc">快递 100 文档</a>
|
|
|
*
|
|
|
* @author jason
|
|
@@ -37,7 +37,6 @@ public class Kd100ExpressQueryRespDTO {
|
|
|
|
|
|
/**
|
|
|
* 查询结果
|
|
|
- *
|
|
|
* 失败返回 "false"
|
|
|
*/
|
|
|
private String result;
|
|
@@ -61,6 +60,11 @@ public class Kd100ExpressQueryRespDTO {
|
|
|
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
|
|
|
private LocalDateTime time;
|
|
|
|
|
|
+ public void setTime(String time) {
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern(FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND);
|
|
|
+ this.time = LocalDateTime.parse(time,formatter);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 轨迹描述
|
|
|
*/
|