|
@@ -13,6 +13,7 @@ import com.platform.dao.vo.export.sb.ExportSbInfoVO;
|
|
|
import com.platform.dao.vo.query.sparepartmanage.SparePartInfoVO;
|
|
|
import com.platform.office.poi.excel.ExcelImportUtil;
|
|
|
import com.platform.office.poi.excel.entity.ImportParams;
|
|
|
+import com.platform.office.poi.excel.imports.CellValueServer;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.poi.POIXMLDocument;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
@@ -24,6 +25,8 @@ import org.apache.poi.ss.usermodel.Row;
|
|
|
import org.apache.poi.ss.usermodel.Sheet;
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
|
|
import java.io.FileInputStream;
|
|
|
import java.io.IOException;
|
|
@@ -45,7 +48,7 @@ import java.util.*;
|
|
|
public class CustomExcelImportUtil {
|
|
|
|
|
|
static DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
-
|
|
|
+ private static final Logger LOGGER = LoggerFactory.getLogger(CellValueServer.class);
|
|
|
/**
|
|
|
* 导入发运明细
|
|
|
*
|
|
@@ -1043,7 +1046,7 @@ public class CustomExcelImportUtil {
|
|
|
SparePartInfoVO record = null;
|
|
|
|
|
|
StringBuffer error = new StringBuffer();
|
|
|
- System.out.println("处理行数:" + rowCounts);
|
|
|
+ LOGGER.info("处理行数:" + rowCounts);
|
|
|
for (int i = 2; i <= rowCounts; i++) {
|
|
|
record = new SparePartInfoVO();
|
|
|
Row row = sheet.getRow(i);
|