package com.inspect.metadata.montdata.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;

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 BasedataMontPatDevCoord extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long coordId;
    @Excel(
            name = "巡检设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "巡视设备编码"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "巡视设备名称"
    )
    private String patrolDeviceName;
    @Excel(
            name = "时间"
    )
    private String time;
    @Excel(
            name = "坐标,格式：”x,y,z,a”，x、y、z为地图文 件的坐标，a为巡视设备航向角"
    )
    private String coordPixel;

    @Excel(
            name = "坐标,格式：”x,y,z,a”，x、y、z为地图文 件的坐标，a为巡视设备航向角"
    )
    @JsonProperty("coordinate_pixel")
    @JSONField(name = "coordinate_pixel")
    private String coordinatePixel;
    @Excel(
            name = "经纬度,格式：”x，y”"
    )
    private String coordGeography;

    @Excel(
            name = "经纬度,格式：”x，y”"
    )
    @JsonProperty("coordinate_geography")
    @JSONField(name = "coordinate_geography")
    private String coordinateGeography;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    @Excel(
            name = "删除标志，0：正常；2：删除"
    )
    private String deleteFlag;
    private String patrolDeviceType;
    public void setCoordinatePixel(String coordinatePixel) {
        this.coordinatePixel = coordinatePixel;
        this.coordPixel = coordinatePixel;
    }

    public void setCoordinateGeography(String coordinateGeography) {
        this.coordinateGeography = coordinateGeography;
        this.coordGeography = coordinateGeography;
    }

    @Override
    public String toString() {
        return "BasedataMontPatDevCoord{" +
                "coordId=" + coordId +
                ", eqpBookId=" + eqpBookId +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", patrolDeviceName='" + patrolDeviceName + '\'' +
                ", time='" + time + '\'' +
                ", coordPixel='" + coordPixel + '\'' +
                ", coordinatePixel='" + coordinatePixel + '\'' +
                ", coordGeography='" + coordGeography + '\'' +
                ", coordinateGeography='" + coordinateGeography + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", deleteFlag='" + deleteFlag + '\'' +
                ", patrolDeviceType='" + patrolDeviceType + '\'' +
                '}';
    }
}
