caozixuan преди 3 години
родител
ревизия
c4d2e0da7a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      teachcloud-common/src/main/java/com/qmth/teachcloud/common/util/ExcelUtil.java

+ 2 - 2
teachcloud-common/src/main/java/com/qmth/teachcloud/common/util/ExcelUtil.java

@@ -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.ExcelError;
 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.ss.usermodel.Cell;
 import org.apache.poi.ss.usermodel.CellType;
@@ -319,7 +319,7 @@ public class ExcelUtil {
         //判断多少个单元格为空
         for (int c = 0; c < rowCount; 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;
             }
         }