package com.zd.airbottle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zd.common.core.web.domain.BaseEntity;
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.util.Date;
import java.util.List;

/**
 * 报警记录对象 qp_alarm_record
 */
@ApiModel("报警记录")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class AlarmRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 电子标签
     */
    @ApiModelProperty(value = "电子标签")
    private String electronicTag;
    /**
     * 报警类型;1:出门,2:进门
     */
    @ApiModelProperty(value = "报警类型;1:出门,2:进门")
    private Integer type;
    /**
     * 产品类型;1:气瓶,2:其他
     */
    @ApiModelProperty(value = "产品类型;1:气瓶,2:其他")
    private Integer productType;
    /**
     * 报警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "报警时间")
    private Date alarmTime;

    private String startTime;
    private String endTime;

    private List<Long> masterIds;

}
