添加addTime和updateTime属性
This commit is contained in:
parent
a47abc701e
commit
5e3489cb43
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
@Data
|
||||
@ -28,4 +29,11 @@ public class TimelyWarningDO implements Serializable {
|
||||
|
||||
@TableField("direction")
|
||||
private String direction;
|
||||
|
||||
@TableField("add_time")
|
||||
private LocalDateTime addTime;
|
||||
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
package net.carbon.model.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class TimelyWarningVO {
|
||||
|
||||
@ -14,4 +17,10 @@ public class TimelyWarningVO {
|
||||
private Double data;
|
||||
|
||||
private String direction;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime addTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user