|
@@ -5,6 +5,7 @@ import cn.tr.module.excel.core.service.ExcelService;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import java.io.InputStream;
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -21,4 +22,9 @@ public class ExcelProvider implements ExcelApi {
|
|
|
public <T> byte[] doExportExcel(Class<T> aClass, Collection<T> data) {
|
|
public <T> byte[] doExportExcel(Class<T> aClass, Collection<T> data) {
|
|
|
return excelService.exportExcel(aClass,data);
|
|
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);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|