package com.njcn.pojo.excelBody;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hongawen
 * @Date: 2018/11/8 15:02
 */
public class SubStationExcelBody extends BaseRowModel implements Serializable {

    @Column(name="SUB_INDEX")
    @ExcelProperty(value = "变电站序号" ,index = 0)
    private BigDecimal subIndex;

    @Column(name="GD_INDEX")
    @ExcelProperty(value = "供电公司序号" ,index = 1)
    private BigDecimal gdIndex;

    @Column(name="NAME")
    @ExcelProperty(value = "变电站名称" ,index = 2)
    private String name;

    public BigDecimal getSubIndex() {
        return subIndex;
    }

    public void setSubIndex(BigDecimal subIndex) {
        this.subIndex = subIndex;
    }

    public BigDecimal getGdIndex() {
        return gdIndex;
    }

    public void setGdIndex(BigDecimal gdIndex) {
        this.gdIndex = gdIndex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SubStationExcelBody{" +
                "subIndex=" + subIndex +
                ", gdIndex=" + gdIndex +
                ", name='" + name + '\'' +
                '}';
    }
}
