解决多单位商品导入的bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user