|
@@ -1,9 +1,11 @@
|
|
|
package com.zglc.kg.entity;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import lombok.Data;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
-import java.sql.Date;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
@Data
|
|
|
@Table(name = "t_experiment")
|
|
@@ -24,9 +26,13 @@ public class ExperimentEntity {
|
|
|
private String experiment_name;
|
|
|
|
|
|
@Column(name = "start_time")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date start_time;
|
|
|
|
|
|
@Column(name = "end_time")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date end_time;
|
|
|
|
|
|
@Column(name = "data_type")
|