|
|
@@ -7,6 +7,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
import java.util.Collection;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : ExcelProvider
|
|
|
@@ -23,8 +24,9 @@ public class ExcelProvider implements ExcelApi {
|
|
|
return excelService.exportExcel(aClass,data);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
- public <T> String importExcel(String filename, InputStream inputStream, Class<T> aClass) throws Exception {
|
|
|
- return excelService.importExcel(filename,inputStream,aClass,null);
|
|
|
+ public <T> String importExcel(String filename, InputStream inputStream, Class<T> aClass, Map<String, Object> customObj) throws Exception {
|
|
|
+ return excelService.importExcel(filename,inputStream,aClass,customObj);
|
|
|
}
|
|
|
}
|