修改bug#41757
This commit is contained in:
+4
-4
@@ -27,10 +27,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -253,6 +250,9 @@ public class JeroController<T, S extends IService<T>> {
|
|||||||
}
|
}
|
||||||
return ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
|
return ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
if(Objects.isNull(e.getMessage())){
|
||||||
|
throw new JeroBootException("文件导入失败:请填写内容标题!");
|
||||||
|
}
|
||||||
throw new JeroBootException("文件导入失败:" + e.getMessage());
|
throw new JeroBootException("文件导入失败:" + e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user