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 14:27
 */
public class GDExcelBody extends BaseRowModel implements Serializable {

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

    @Column(name="NAME")
    @ExcelProperty(value = "供电公司名称" ,index = 1)
    private String name;

    @Column(name="PROVINCE_INDEX")
    @ExcelProperty(value = "省级序号" ,index = 2)
    private BigDecimal provinceIndex;

    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;
    }

    public BigDecimal getProvinceIndex() {
        return provinceIndex;
    }

    public void setProvinceIndex(BigDecimal provinceIndex) {
        this.provinceIndex = provinceIndex;
    }

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