修改bug#41757

This commit is contained in:
梁琦涛
2021-11-01 09:25:03 +08:00
parent 834ad746d8
commit 6b2934d4bb
@@ -27,10 +27,7 @@ import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.stream.Collectors;
/**
@@ -253,6 +250,9 @@ public class JeroController<T, S extends IService<T>> {
}
return ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
} catch (Exception e) {
if(Objects.isNull(e.getMessage())){
throw new JeroBootException("文件导入失败:请填写内容标题!");
}
throw new JeroBootException("文件导入失败:" + e.getMessage());
} finally {
try {