back_recharge
gaojie 2019-01-14 18:30:39 +08:00
parent 69c5314ff4
commit eb9411c58c
2 changed files with 5 additions and 6 deletions

View File

@ -12,9 +12,6 @@ repositories {
}
dependencies {
compile project(":netty")
testCompile group: 'junit', name: 'junit', version: '4.12'
compile("org.apache.poi:poi-ooxml:3.12")
}

View File

@ -11,7 +11,7 @@ import java.util.List;
import java.util.Map;
public class ExcelUtils {
private static final Logger LOGGER = LoggerFactory.getLogger(ExcelUtils.class);
// private static final Logger LOGGER = LoggerFactory.getLogger(ExcelUtils.class);
private static boolean isWrite = true;
// excel文件地址
private static String excelPath ="tmp/";
@ -51,7 +51,8 @@ public class ExcelUtils {
Object cellData;
sheet = wb.getSheetAt(0);
String sheetName = sheet.getSheetName();
LOGGER.info("collection name={}", sheetName);
System.out.println("buildDataInfo => collection name="+sheetName);
// LOGGER.info("collection name={}", sheetName);
int rownum = sheet.getPhysicalNumberOfRows();
FileWriter fw = new FileWriter(path + sheetName + ".txt");
PrintWriter out = new PrintWriter(fw);
@ -91,7 +92,8 @@ public class ExcelUtils {
private static void bulidMapInfo(Workbook wb) throws IOException {
Sheet sheet = wb.getSheetAt(0);
String sheetName = sheet.getSheetName();
LOGGER.info("collection name={}", sheetName);
System.out.println("bulidMapInfo => collection name="+sheetName);
// LOGGER.info("collection name={}", sheetName);
int rowNum = sheet.getPhysicalNumberOfRows();
FileWriter fw = new FileWriter(path + sheetName + ".txt");
PrintWriter out = new PrintWriter(fw);