Commit 661439a6 authored by 杨锐's avatar 杨锐

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")。

parent 450ccc9f
package cn.quantgroup.xyqb.entity; package cn.quantgroup.xyqb.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import javax.persistence.*; import javax.persistence.*;
...@@ -94,11 +95,13 @@ public class ModifyPhoneNo implements Serializable { ...@@ -94,11 +95,13 @@ public class ModifyPhoneNo implements Serializable {
* *
*/ */
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdAt; private Date createdAt;
/** /**
* *
*/ */
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedAt; private Date updatedAt;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment