Commit 385293c1 by 向延琳

时间类型增加注解

1 parent 81b29d27
package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
......@@ -42,6 +43,7 @@ public class AlarmSecondDataDTO implements Serializable {
/**
* 二押区域报警时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date alarmTime;
/**
......@@ -52,6 +54,7 @@ public class AlarmSecondDataDTO implements Serializable {
/**
* 离开二押区域时间(当前还未动身的数据不记录到数据库)
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date leaveTime;
/**
......@@ -72,6 +75,7 @@ public class AlarmSecondDataDTO implements Serializable {
/**
* 事件时间,写入事件
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date eventTime;
/**
......@@ -87,6 +91,7 @@ public class AlarmSecondDataDTO implements Serializable {
/**
* 创建时间|入库时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
/**
......@@ -97,6 +102,7 @@ public class AlarmSecondDataDTO implements Serializable {
/**
* 更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedDate;
/**
......
package cn.com.glsx.stdinterface.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.Column;
......@@ -39,6 +40,7 @@ public class AlarmSecondNearRelDTO implements Serializable {
/**
* 创建时间|入库时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
/**
......@@ -49,6 +51,7 @@ public class AlarmSecondNearRelDTO implements Serializable {
/**
* 更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedDate;
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!