|
@@ -7,7 +7,7 @@ import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelCallback;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelCallback;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelError;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelError;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelWriter;
|
|
import com.qmth.teachcloud.common.util.excel.ExcelWriter;
|
|
-import jodd.util.StringUtil;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
import org.apache.poi.ss.usermodel.CellType;
|
|
import org.apache.poi.ss.usermodel.CellType;
|
|
@@ -319,7 +319,7 @@ public class ExcelUtil {
|
|
//判断多少个单元格为空
|
|
//判断多少个单元格为空
|
|
for (int c = 0; c < rowCount; c++) {
|
|
for (int c = 0; c < rowCount; c++) {
|
|
Cell cell = row.getCell(c);
|
|
Cell cell = row.getCell(c);
|
|
- if (cell == null || cell.getCellTypeEnum() == CellType.BLANK || StringUtil.isEmpty((cell+"").trim())){
|
|
|
|
|
|
+ if (cell == null || cell.getCellTypeEnum() == CellType.BLANK || StringUtils.isEmpty((cell+"").trim())){
|
|
count += 1;
|
|
count += 1;
|
|
}
|
|
}
|
|
}
|
|
}
|