解决多单位商品导入的bug

This commit is contained in:
季圣华
2021-12-03 21:52:53 +08:00
parent 4bb9140426
commit 3e2bbd0a1b
7 changed files with 32 additions and 23 deletions

View File

@@ -204,7 +204,11 @@ public class ExcelUtils {
public static String getContent(Sheet src, int rowNum, int colNum) {
return src.getRow(rowNum)[colNum].getContents().trim();
if(colNum < src.getRow(rowNum).length) {
return src.getRow(rowNum)[colNum].getContents().trim();
} else {
return null;
}
}
/**