Commit d4f3d4b2 authored by 王亮's avatar 王亮

format Localdatetime

parent 423b1579
package cn.quantgroup.xyqb.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.*;
......@@ -23,10 +24,12 @@ public abstract class BaseEntity implements Serializable {
@Basic(optional = false)
private Long id;
@Column(name = "created_at",columnDefinition = "TIMESTAMP")
@Column(name = "created_at")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private LocalDateTime createdAt;
@Column(name = "updated_at",columnDefinition = "TIMESTAMP")
@Column(name = "updated_at")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private LocalDateTime updatedAt;
@PrePersist
......
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