本文章都是自创,如有类同纯属巧合,转发的朋友请写我的文章链接
公司用到.csv文件导入数据,由于存储格式是文字,逗号,文字,逗号的格式,所以poi导入已经不适用 了
文章目录
实体类:
我由于导入多个文件所以实体类字段比较多,使用的时候自行删减。
package com.lianZhong.model;
public class SheShi {
/**
* 编号
*/
private String bianHao;
/**
* 名称
*/
private String name;
/**
* 区划编码
*/
private String xingZhengQuHuaDaiMa;
/**
* 路线名称
*/
private String luXianMingCheng;
/**
* 路线编号
*/
private String luXianBianHao;
/**
* 起点经度
*/
private String qiDianJingDu;
/**
* 起点维度
*/
private String qiDianWeiDu;
/**
* 止点经度
*/
private String zhiDianJingDu;
/**
* 止点维度
*/
private String zhiDianWeiDu;
/**
*起点桩号
*/
private Double qiDianZhuangHao;
/**
*止点桩号
*/
private Double zhiDianZhuangHao;
private Double changDu;
/**
* 经度
*/
private String jingDu;
/**
* 维度
*/
private String weiDu;
/**
*桩号
*/
private Double zhuangHao;
private Double gaoDu;
private Double zhiJing;
private Double kuanDu;
private Double jianGe;
private String fwqName;
private Double qiaoXiaJingKongGaoDu;
private String jiaYouZhanName;
private String tingCheQuName;
private String yangHuGongQuName;
private String zhiChaoZhanName;
private String qiaoLiangName;
private String daoBanName;
private Double jingKuan;
private Double zongKuan;
private String size;
private String fenLei;
private String guiGe;
private String suiDaoName;
private String wenZi;
private String xingZhuang;
private String fuZhuBiaoZhi;
private String fzwz;
private String fzbzgg;
public String getFzwz() {
return fzwz;
}
public void setFzwz(String fzwz) {
this.fzwz = fzwz;
}
public String getFzbzgg() {
return fzbzgg;
}
public void setFzbzgg(String fzbzgg) {
this.fzbzgg = fzbzgg;
}
public String getWenZi() {
return wenZi;
}
public void setWenZi(String wenZi) {
this.wenZi = wenZi;
}
public String getXingZhuang() {
return xingZhuang;
}
public void setXingZhuang(String xingZhuang) {
this.xingZhuang = xingZhuang;
}
public String getFuZhuBiaoZhi() {
return fuZhuBiaoZhi;
}
public void setFuZhuBiaoZhi(String fuZhuBiaoZhi) {
this.fuZhuBiaoZhi = fuZhuBiaoZhi;
}
public String getSuiDaoName() {
return suiDaoName;
}
public void setSuiDaoName(String suiDaoName) {
this.suiDaoName = suiDaoName;
}
public String getGuiGe() {
return guiGe;
}
public void setGuiGe(String guiGe) {
this.guiGe = guiGe;
}
public String getFenLei() {
return fenLei;
}
public void setFenLei(String fenLei) {
this.fenLei = fenLei;
}
public String getSize() {
return size;
}
public void setSize(String size) {
this.size = size;
}
public String getDaoBanName() {
return daoBanName;
}
public void setDaoBanName(String daoBanName) {
this.daoBanName = daoBanName;
}
public String getFwqName() {
return fwqName;
}
public void setFwqName(String fwqName) {
this.fwqName = fwqName;
}
public Double getQiaoXiaJingKongGaoDu() {
return qiaoXiaJingKongGaoDu;
}
public void setQiaoXiaJingKongGaoDu(Double qiaoXiaJingKongGaoDu) {
this.qiaoXiaJingKongGaoDu = qiaoXiaJingKongGaoDu;
}
public String getJiaYouZhanName() {
return jiaYouZhanName;
}
public void setJiaYouZhanName(String jiaYouZhanName) {
this.jiaYouZhanName = jiaYouZhanName;
}
public String getTingCheQuName() {
return tingCheQuName;
}
public void setTingCheQuName(String tingCheQuName) {
this.tingCheQuName = tingCheQuName;
}
public String getYangHuGongQuName() {
return yangHuGongQuName;
}
public void setYangHuGongQuName(String yangHuGongQuName) {
this.yangHuGongQuName = yangHuGongQuName;
}
public String getZhiChaoZhanName() {
return zhiChaoZhanName;
}
public void setZhiChaoZhanName(String zhiChaoZhanName) {
this.zhiChaoZhanName = zhiChaoZhanName;
}
public String getQiaoLiangName() {
return qiaoLiangName;
}
public void setQiaoLiangName(String qiaoLiangName) {
this.qiaoLiangName = qiaoLiangName;
}
public Double getJingKuan() {
return jingKuan;
}
public void setJingKuan(Double jingKuan) {
this.jingKuan = jingKuan;
}
public Double getZongKuan() {
return zongKuan;
}
public void setZongKuan(Double zongKuan) {
this.zongKuan = zongKuan;
}
public Double getKuanDu() {
return kuanDu;
}
public void setKuanDu(Double kuanDu) {
this.kuanDu = kuanDu;
}
public Double getJianGe() {
return jianGe;
}
public void setJianGe(Double jianGe) {
this.jianGe = jianGe;
}
public String getJingDu() {
return jingDu;
}
public void setJingDu(String jingDu) {
this.jingDu = jingDu;
}
public String getWeiDu() {
return weiDu;
}
public void setWeiDu(String weiDu) {
this.weiDu = weiDu;
}
public Double getZhuangHao() {
return zhuangHao;
}