package com.inspect.metadata.montdata.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class BasedataMontPatDevOnline extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long onlineId;
    @Excel(
            name = "设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "设备编码"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "设备名称"
    )
    private String patrolDeviceName;
    @Excel(
            name = "状态",
            readConverterExp = "0=离线,1=在线"
    )
    private String status;
    private String delFlag;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "在线时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date onlineTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "离线时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date offlineTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "触发时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date actionTime;

    @Override
    public String toString() {
        return "BasedataMontPatDevOnline{" +
                "onlineId=" + onlineId +
                ", eqpBookId=" + eqpBookId +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", patrolDeviceName='" + patrolDeviceName + '\'' +
                ", status='" + status + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", onlineTime=" + onlineTime +
                ", offlineTime=" + offlineTime +
                ", actionTime=" + actionTime +
                '}';
    }
}
