package com.xzzn.ems.domain;

import com.xzzn.common.annotation.Excel;
import com.xzzn.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class EmsPointCalcConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "点位ID")
    private String pointId;

    @Excel(name = "站点ID")
    private String siteId;

    @Excel(name = "设备类型")
    private String deviceCategory;

    @Excel(name = "点位名称")
    private String pointName;

    @Excel(name = "数据键")
    private String dataKey;

    @Excel(name = "点位描述")
    private String pointDesc;

    @Excel(name = "单位")
    private String dataUnit;

    @Excel(name = "计算表达式")
    private String calcExpression;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPointId() {
        return pointId;
    }

    public void setPointId(String pointId) {
        this.pointId = pointId;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    public String getDeviceCategory() {
        return deviceCategory;
    }

    public void setDeviceCategory(String deviceCategory) {
        this.deviceCategory = deviceCategory;
    }

    public String getDataKey() {
        return dataKey;
    }

    public void setDataKey(String dataKey) {
        this.dataKey = dataKey;
    }

    public String getPointDesc() {
        return pointDesc;
    }

    public void setPointDesc(String pointDesc) {
        this.pointDesc = pointDesc;
    }

    public String getDataUnit() {
        return dataUnit;
    }

    public void setDataUnit(String dataUnit) {
        this.dataUnit = dataUnit;
    }

    public String getCalcExpression() {
        return calcExpression;
    }

    public void setCalcExpression(String calcExpression) {
        this.calcExpression = calcExpression;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pointId", getPointId())
            .append("siteId", getSiteId())
            .append("deviceCategory", getDeviceCategory())
            .append("pointName", getPointName())
            .append("dataKey", getDataKey())
            .append("pointDesc", getPointDesc())
            .append("dataUnit", getDataUnit())
            .append("calcExpression", getCalcExpression())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
