Commit 04c877b3 by zhiwj

门店

parent e25a358c
......@@ -248,7 +248,7 @@ public class ExcelUtils {
public static Workbook getWorkbookFromUpload(InputStream inputStream, String fileName) throws IOException {
Workbook wb;
String fileType = fileName.substring(fileName.lastIndexOf(".")) + 1;
String fileType = fileName.substring(fileName.lastIndexOf(".") + 1);
if (Constants.XLSX.equals(fileType)) {
wb = new XSSFWorkbook(inputStream);
} else if (Constants.XLS.equals(fileType)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment