|
|
@@ -29,7 +29,7 @@ public class Analysis {
|
|
|
* @param file 上传的文件
|
|
|
* @return 二维集合(第一重集合为行,第二重集合为列,每一行包含该行的列集合,列集合包含该行的全部单元格的值)
|
|
|
*/
|
|
|
- public static ArrayList<Map<String,String>> analysis(MultipartFile file, Map<Integer, String> field) {
|
|
|
+ public static ArrayList<Map<String,String>> analysis(MultipartFile file, Map<Integer, String> field) throws IOException {
|
|
|
|
|
|
ArrayList<Map<String,String>> row = new ArrayList<>();
|
|
|
if(field.size()<=0){
|
|
|
@@ -78,9 +78,11 @@ public class Analysis {
|
|
|
} catch (FileNotFoundException e) {
|
|
|
e.printStackTrace();
|
|
|
System.out.println("===================未找到文件======================");
|
|
|
+ throw e;
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
System.out.println("===================上传失败======================");
|
|
|
+ throw e;
|
|
|
}
|
|
|
|
|
|
return row;
|