Commit a15f32b9 by tyfanchz

增加时间格式化注解

1 parent 86bc8159
...@@ -54,13 +54,13 @@ public class PlatformAd implements Serializable { ...@@ -54,13 +54,13 @@ public class PlatformAd implements Serializable {
/** /**
* 创建时间 添加时间 * 创建时间 添加时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
/** /**
......
...@@ -54,13 +54,13 @@ public class PlatformApi implements Serializable { ...@@ -54,13 +54,13 @@ public class PlatformApi implements Serializable {
/** /**
* 创建时间 * 创建时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
/** /**
......
...@@ -49,7 +49,7 @@ public class PlatformApiCall implements Serializable { ...@@ -49,7 +49,7 @@ public class PlatformApiCall implements Serializable {
/** /**
* 创建时间 访问时间 * 创建时间 访问时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private Date createTime;
/** /**
......
...@@ -29,7 +29,7 @@ public class PlatformAppDownload implements Serializable { ...@@ -29,7 +29,7 @@ public class PlatformAppDownload implements Serializable {
/** /**
* 创建时间 下载时间 * 创建时间 下载时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private Date createTime;
/** /**
......
...@@ -89,13 +89,13 @@ public class PlatformCustomer implements Serializable { ...@@ -89,13 +89,13 @@ public class PlatformCustomer implements Serializable {
/** /**
* 创建d时间 * 创建d时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
/** /**
......
...@@ -44,7 +44,7 @@ public class PlatformDevice implements Serializable { ...@@ -44,7 +44,7 @@ public class PlatformDevice implements Serializable {
/** /**
* 激活时间 * 激活时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activatTime; private Date activatTime;
/** /**
...@@ -55,13 +55,13 @@ public class PlatformDevice implements Serializable { ...@@ -55,13 +55,13 @@ public class PlatformDevice implements Serializable {
/** /**
* 创建时间 * 创建时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
/** /**
......
...@@ -59,7 +59,7 @@ public class PlatformUser implements Serializable { ...@@ -59,7 +59,7 @@ public class PlatformUser implements Serializable {
/** /**
* 最后登录时间 * 最后登录时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date lastLoginTime; private Date lastLoginTime;
/** /**
...@@ -70,13 +70,13 @@ public class PlatformUser implements Serializable { ...@@ -70,13 +70,13 @@ public class PlatformUser implements Serializable {
/** /**
* 创建时间 注册时间 * 创建时间 注册时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @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") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private Date updateTime;
/** /**
......
...@@ -19,13 +19,13 @@ public class ApiCallVo implements Serializable { ...@@ -19,13 +19,13 @@ public class ApiCallVo implements Serializable {
/** /**
* 访问开始时间 * 访问开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date accessStartTime; private Date accessStartTime;
/** /**
* 访问结束时间 * 访问结束时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date accessEndTime; private Date accessEndTime;
public Date getAccessStartTime() { public Date getAccessStartTime() {
......
...@@ -29,13 +29,13 @@ public class DeviceVo implements Serializable { ...@@ -29,13 +29,13 @@ public class DeviceVo implements Serializable {
/** /**
* 激活开始时间 * 激活开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activatStartTime; private Date activatStartTime;
/** /**
* 激活开始时间 * 激活开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date activatEndTime; private Date activatEndTime;
public String getCustomerName() { public String getCustomerName() {
......
...@@ -3,6 +3,7 @@ package cn.com.glsx.openplatform.vo; ...@@ -3,6 +3,7 @@ package cn.com.glsx.openplatform.vo;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* <p>Description: * <p>Description:
...@@ -33,13 +34,15 @@ public class UserVo implements Serializable { ...@@ -33,13 +34,15 @@ public class UserVo implements Serializable {
/** /**
* 激活开始时间 * 激活开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date registerStartTime; private Date registerStartTime;
/** /**
* 激活开始时间 * 激活开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date registerEndTime; private Date registerEndTime;
public String getCustomerName() { public String getCustomerName() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!