fxkh-txl-service/src/main/java/com/whdc/model/entity/QXWarning.java

96 lines
3.3 KiB
Java

package com.whdc.model.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@Data
@Accessors(chain = true) // chain = true 实现链式调用
@ApiModel(value = "QXWARNING 对象", description = "气象预警表")
@JsonInclude(JsonInclude.Include.NON_NULL) // 表示序列化非null属性
@TableName("FXKH_TXL.QXWARNING")
public class QXWarning {
@TableId(value = "ID",type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
@Excel(name = "createTime")
@TableField("CREATE_TIME")
@ApiModelProperty(value = "预警信息生成时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
@Excel(name = "publishTime")
@TableField("PUBLISH_TIME")
@ApiModelProperty(value = "预警信息发布时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date publishTime;
@Excel(name = "startTime")
@TableField("START_TIME")
@ApiModelProperty(value = "预警信息开始时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date startTime;
@Excel(name = "endTime")
@TableField("END_TIME")
@ApiModelProperty(value = "预警信息结束时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date endTime;
@Excel(name = "warnSignalType")
@ApiParam(value = "预警类型")
@ApiModelProperty(value = "预警类型", dataType = "java.lang.String")
private String warnSignalType;
@Excel(name = "warnSignalLevel")
@ApiParam(value = "预警级别")
@ApiModelProperty(value = "预警级别", dataType = "java.lang.String")
private String warnSignalLevel;
@Excel(name = "publishUnit")
@ApiParam(value = "发布单位")
@ApiModelProperty(value = "发布单位", dataType = "java.lang.String")
private String publishUnit;
@Excel(name = "content")
@ApiParam(value = "预警内容")
@ApiModelProperty(value = "预警内容", dataType = "java.lang.String")
private String content;
@Excel(name = "Qx_Id")
@TableField("WARNID")
@ApiModelProperty(value = "预警信息ID")
private Integer warnid;
@Excel(name = "effectArea_Big")
@TableField("CTNM")
@ApiModelProperty(value = "预警市名称", dataType = "java.lang.String")
private String ctnm;
@Excel(name = "effectArea_Small")
@TableField("CNNM")
@ApiModelProperty(value = "预警县名称", dataType = "java.lang.String")
private String cnnm;
@Excel(name = "handleTime")
@TableField(exist = false)
@ApiModelProperty(value = "预警信息处理时间", dataType = "java.lang.String")
private Date handleTime;
@TableField(exist = false)
@Excel(name = "Effect_Id")
private String effectId;
}