package org.jeecg.modules.arj.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import java.util.Date;
|
import java.io.Serializable;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author hyy
|
* @since 2023-01-04
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@ApiModel(value="Alert对象", description="")
|
public class Alert implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
@ApiModelProperty(value = "1 设备报警 2 危险源报警 3 其他报警")
|
private Integer dtype;
|
|
|
|
private String position;
|
|
private String content;
|
|
private Integer state;
|
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT)//
|
private Date createDate;
|
|
/**
|
* 进行添加和修改操作时有值
|
*/
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT_UPDATE)////进行添加和修改操作时有值
|
private Date updateDate;
|
}
|