Commit 55f98331 by 杨林龙

设置日期格式

1 parent 2d3ab408
package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
......@@ -39,6 +40,7 @@ public class ChannelRiskDto {
/**
* 激活时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activeDate;
/**
......@@ -49,6 +51,7 @@ public class ChannelRiskDto {
/**
* gps上点时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gpsTime;
/**
......
package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
......@@ -34,6 +35,7 @@ public class ElectricFenceDto {
/**
* 行程开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date journeyTime;
/**
......@@ -49,10 +51,12 @@ public class ElectricFenceDto {
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
}
package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
......@@ -44,6 +45,7 @@ public class ElectricInStoreDto {
/**
* 行程开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gpsTime;
/**
......@@ -54,10 +56,12 @@ public class ElectricInStoreDto {
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
/**
* 更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedTime;
}
\ 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!