mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 10:26:48 +08:00
JsonFormat
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.xboe.module.popup.entity;
|
package com.xboe.module.popup.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.xboe.core.SysConstant;
|
import com.xboe.core.SysConstant;
|
||||||
import com.xboe.core.orm.IdEntity;
|
import com.xboe.core.orm.IdEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -24,12 +25,14 @@ public class Popup extends IdEntity {
|
|||||||
* 开始时间
|
* 开始时间
|
||||||
* */
|
* */
|
||||||
@Column(name = "start_time")
|
@Column(name = "start_time")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime startTime;
|
private LocalDateTime startTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 结束时间
|
* 结束时间
|
||||||
* */
|
* */
|
||||||
@Column(name = "end_time")
|
@Column(name = "end_time")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime endTime;
|
private LocalDateTime endTime;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user