Commit 55f98331 by 杨林龙

设置日期格式

1 parent 2d3ab408
package cn.com.glsx.stdinterface.dto; package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
...@@ -39,6 +40,7 @@ public class ChannelRiskDto { ...@@ -39,6 +40,7 @@ public class ChannelRiskDto {
/** /**
* 激活时间 * 激活时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activeDate; private Date activeDate;
/** /**
...@@ -49,6 +51,7 @@ public class ChannelRiskDto { ...@@ -49,6 +51,7 @@ public class ChannelRiskDto {
/** /**
* gps上点时间 * gps上点时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gpsTime; private Date gpsTime;
/** /**
......
package cn.com.glsx.stdinterface.dto; package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
...@@ -34,6 +35,7 @@ public class ElectricFenceDto { ...@@ -34,6 +35,7 @@ public class ElectricFenceDto {
/** /**
* 行程开始时间 * 行程开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date journeyTime; private Date journeyTime;
/** /**
...@@ -49,10 +51,12 @@ public class ElectricFenceDto { ...@@ -49,10 +51,12 @@ public class ElectricFenceDto {
/** /**
* 创建时间 * 创建时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private Date createTime;
/** /**
* 更新时间 * 更新时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
} }
package cn.com.glsx.stdinterface.dto; package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
...@@ -44,6 +45,7 @@ public class ElectricInStoreDto { ...@@ -44,6 +45,7 @@ public class ElectricInStoreDto {
/** /**
* 行程开始时间 * 行程开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gpsTime; private Date gpsTime;
/** /**
...@@ -54,10 +56,12 @@ public class ElectricInStoreDto { ...@@ -54,10 +56,12 @@ public class ElectricInStoreDto {
/** /**
* 创建时间 * 创建时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime; private Date createdTime;
/** /**
* 更新时间 * 更新时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedTime; private Date updatedTime;
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!