package com.whyc.pojo;
|
|
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.JsonIgnoreProperties;
|
import com.whyc.dto.Page;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.*;
|
import lombok.experimental.Accessors;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author xuzhongpei
|
* @since 2021-12-10
|
*/
|
@Data
|
@AllArgsConstructor
|
@NoArgsConstructor
|
@ToString
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName(schema ="db_pwrdev_alarm" ,value="tb_pwrdev_alarm_history")
|
@ApiModel(value="PwrdevAlarmHistory对象", description="")
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
public class PwrdevAlarmHistory implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "num", type = IdType.AUTO)
|
private Long num;
|
|
private Long recordId;
|
|
@TableField("PowerDeviceId")
|
private Long PowerDeviceId;
|
|
private Integer almType;
|
|
@TableField(exist = false)
|
private List<Integer> almTypes;
|
|
private Integer almLevel;
|
|
@TableField(exist = false)
|
private List<Integer> almLevels;
|
|
private Integer almSource;
|
|
private Integer almIndex;
|
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date almStartTime;
|
|
@TableField(exist = false)
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date almStartTime1;
|
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date almEndTime;
|
|
private Float almValue;
|
|
private Integer almIsConfirmed;
|
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date almConfirmedTime;
|
|
private Integer almClearedType;
|
|
@TableField("usr_Id")
|
private Integer usrId;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "故障名称拼接")
|
private String alarmName;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "告警类型拼接")
|
private String alarmLevels;
|
|
@ApiModelProperty(value = "机房全名")
|
private String stationName;
|
|
@ApiModelProperty(value = "机房所在省")
|
private String stationName1;
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "机房所在市")
|
private String stationName2;
|
|
@ApiModelProperty(value = "机房所在区县")
|
private String stationName5;
|
|
@ApiModelProperty(value = "机房名称")
|
private String stationName3;
|
|
@ApiModelProperty(value = "电源名称")
|
@TableField(exist = false)
|
private String powerDeviceName;
|
|
@TableField(exist = false)
|
private Page page;
|
|
@TableField(exist = false)
|
private String recordYear;
|
|
|
@ApiModelProperty(value = "告警重要等级[0:重要;1:紧急]")
|
@TableField("alm_severity")
|
private Integer almSeverity;
|
|
private Integer almTrigger;
|
|
@TableField(exist = false)
|
private Integer limitStart;
|
|
@TableField(exist = false)
|
private Integer limitEnd;
|
}
|