生成地图表数据
parent
afaec0973b
commit
0251011110
|
@ -7,7 +7,7 @@ import java.util.*;
|
||||||
|
|
||||||
public class ExcelUtils {
|
public class ExcelUtils {
|
||||||
private static boolean isWrite = true;
|
private static boolean isWrite = true;
|
||||||
private static String excelPath ="C:/ljsd/demo/tmp/Map_data/"; //excel 文件
|
private static String excelPath ="C:/ljsd/demo/tmp/"; //excel 文件
|
||||||
private static String path = "conf/server/";
|
private static String path = "conf/server/";
|
||||||
private static Set<String> oldFileNames = new HashSet<>();
|
private static Set<String> oldFileNames = new HashSet<>();
|
||||||
private static String javaFilePath = "serverlogic/src/main/java/com/ljsd/jieling/config/";
|
private static String javaFilePath = "serverlogic/src/main/java/com/ljsd/jieling/config/";
|
||||||
|
@ -249,8 +249,9 @@ public class ExcelUtils {
|
||||||
Object[][] aa = new Object[rowNum][];
|
Object[][] aa = new Object[rowNum][];
|
||||||
for (int i = 0; i < rowNum; i++) {
|
for (int i = 0; i < rowNum; i++) {
|
||||||
Row row = sheet.getRow(i);
|
Row row = sheet.getRow(i);
|
||||||
Object[] bb = new Object[rowNum];
|
int physicalNumberOfCells = row.getPhysicalNumberOfCells();
|
||||||
for (int j = 0; j < rowNum; j++) {
|
Object[] bb = new Object[physicalNumberOfCells];
|
||||||
|
for (int j = 0; j < physicalNumberOfCells; j++) {
|
||||||
//文件名
|
//文件名
|
||||||
Object cellData = getCellFormatValue(row.getCell(j),null);
|
Object cellData = getCellFormatValue(row.getCell(j),null);
|
||||||
if (!"".equals(cellData)) {
|
if (!"".equals(cellData)) {
|
||||||
|
|
Loading…
Reference in New Issue