package com.sckw.slope.detection.model.vo.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.excel.annotation.ExcelContext;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lfdc
 * @description 告警记录明细数据
 * @date 2023-11-14 14:11:06
 */
@Data
@ExcelContext(fileName = "告警记录明细", sheetName = "告警记录明细")
public class ThresholdRecordDetailExportVO implements Serializable {
    /**
     * ID
     */
    @ExcelIgnore
    private Long id;
    /**
     * 告警等级
     */
    @ExcelProperty("告警等级")
    private String alarmLevel;
    /**
     * 监测要素
     */
    @ExcelProperty("监测要素")
    private String type;
    /**
     * 当前测量值
     */
    @ExcelProperty("当前测量值")
    private String value;
//    @ExcelProperty("监测要素")
    @ExcelIgnore
    private String itemName;
    /**
     * 通知短信
     */
//    @ExcelProperty("通知短信")
    @ExcelIgnore
    private String phone;
    /**
     * 告警地点
     */
    @ExcelProperty("告警地点")
    private String location;
    /**
     * 告警产生时间
     */
    @ExcelProperty("产生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
