|
@@ -1,6 +1,9 @@
|
|
|
package com.zglc.kg.entity;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.models.auth.In;
|
|
|
import lombok.Data;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
+
|
|
|
import javax.persistence.*;
|
|
|
import java.util.Date;
|
|
|
|
|
@@ -32,6 +35,8 @@ public class AlgorithmEntity {
|
|
|
private String device_name;
|
|
|
|
|
|
@Column(name = "create_time")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date create_time;
|
|
|
|
|
|
// @Column(name = "create_user")
|