package com.inspect.metadata.prodevmnt.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.inspect.system.base.openDomain.PatrolTaskDomain;

import java.util.List;

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

@Setter
@Getter
public class BasedataDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long deviceId;
    @Excel(
            name = "设备名称"
    )
    private String deviceName;
    @Excel(
            name = "设备类型名称"
    )
    private String deviceTypeName;
    @Excel(
            name = "区域名称"
    )
    private String areaName;
    @Excel(
            name = "设备编号"
    )
    private String deviceCode;
    @Excel(
            name = "站序号"
    )
    private String stationNo;
    @Excel(
            name = "监控索引号"
    )
    private String monitorIndexNo;
    @Excel(
            name = "设备型号"
    )
    private String deviceModel;
    @Excel(
            name = "生产厂家"
    )
    private String manufacturer;
    @Excel(
            name = "位置"
    )
    private String installPosition;
    private Long parentId;
    private String ancestors;
    private Long areaId;
    private Long relationAreaId;

    @JsonProperty("devicetypeId")
    private Long deviceTypeId;
    private String powerMainEquFlag;
    private String phyAssetId;
    private String phaseNum;
    private String phase;
    private String status;
    private String positionX;
    private String positionY;
    private String positionZ;
    private String deviceLength;
    private String deviceWidth;
    private String deviceHeight;
    private String delFlag;
    @Excel(
            name = "显示顺序"
    )
    private String orderNum;
    private String deviceIdAll;
    private List<String> deviceIdListAll;
    private String eqBookCode;
    private List<PatrolTaskDomain> patrolTaskList;
    private String areaIdS;
    private String oldDeviceId;
    private String oldParentId;
    private String oldAreaId;
    private String oldAreaName;
    private String patrolPointId;
    private String patrolPointName;

    @Override
    public String toString() {
        return "BasedataDevice{" +
                "deviceId=" + deviceId +
                ", deviceName='" + deviceName + '\'' +
                ", deviceTypeName='" + deviceTypeName + '\'' +
                ", areaName='" + areaName + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", stationNo='" + stationNo + '\'' +
                ", monitorIndexNo='" + monitorIndexNo + '\'' +
                ", deviceModel='" + deviceModel + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", installPosition='" + installPosition + '\'' +
                ", parentId=" + parentId +
                ", ancestors='" + ancestors + '\'' +
                ", areaId=" + areaId +
                ", relationAreaId='" + relationAreaId + '\'' +
                ", deviceTypeId=" + deviceTypeId +
                ", powerMainEquFlag='" + powerMainEquFlag + '\'' +
                ", phyAssetId='" + phyAssetId + '\'' +
                ", phaseNum='" + phaseNum + '\'' +
                ", phase='" + phase + '\'' +
                ", status='" + status + '\'' +
                ", positionX='" + positionX + '\'' +
                ", positionY='" + positionY + '\'' +
                ", positionZ='" + positionZ + '\'' +
                ", deviceLength='" + deviceLength + '\'' +
                ", deviceWidth='" + deviceWidth + '\'' +
                ", deviceHeight='" + deviceHeight + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", deviceIdAll='" + deviceIdAll + '\'' +
                ", deviceIdListAll=" + deviceIdListAll +
                ", eqBookCode='" + eqBookCode + '\'' +
                ", patrolTaskList=" + patrolTaskList +
                ", areaIdS='" + areaIdS + '\'' +
                ", oldDeviceId='" + oldDeviceId + '\'' +
                ", oldParentId='" + oldParentId + '\'' +
                ", oldAreaId='" + oldAreaId + '\'' +
                ", oldAreaName='" + oldAreaName + '\'' +
                '}';
    }
}
