package com.zd.bottle.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zd.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Administrator
 */
@ApiModel("报警记录")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class AlarmRecordVo {

    /**
     * 主键
     */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /**
     * 数据主键，关联其他业务表中的数据id
     */
    @ApiModelProperty(value = "数据主键，关联其他业务表中的数据id")
    private Long masterId;

    @Excel(name = "标签码" )
    @ApiModelProperty("电子标签")
    private String electronicTag;

    @Excel(name = "气瓶编号" )
    @ApiModelProperty("气瓶编号")
    private String airNumber;
    /**
     * 气体名称
     */
    @Excel(name = "气体名称" )
    @ApiModelProperty(value = "气体名称")
    private String airName;
    /**
     * 气瓶规格
     */
    @Excel(name = "气瓶规格" )
    @ApiModelProperty(value = "气瓶规格")
    private String configName;

    @ApiModelProperty("产品类型;1:气瓶,2:其他")
    private Integer productType;

    /**
     * 气瓶余量
     */
    @ApiModelProperty(value = "气瓶余量")
    private BigDecimal currentPressure;

    /**
     * 气瓶余量导出字段
     */
    @Excel(name = "气瓶余量" )
    private String currentPressureValue;
    /**
     * 报警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报警时间")
    private Date alarmTime;

}
