@Service
public class ExportFileService
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Title:
Description:
Copyright: 2015~2020
Company/Department: xforceplus
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
ExportFileService.AsyncExcelProcessListener
事件监控处理器
|
protected class |
ExportFileService.ExportSubscriberExceptionHandlerImpl |
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ASYNC_EXCEL_EXPORT_PROCESS_EVENT_BUS
EventBus Name:"AsyncExcelExportProcessEventBus"
|
| 构造器和说明 |
|---|
ExportFileService(ExcelProcess excelProcess,
com.xforceplus.dao.ExcelFileStoreDao excelFileStoreDao) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
初始化Guava EventBus
|
com.xforceplus.entity.ExcelFileStore |
asyncExcelExport(java.util.Map<java.lang.String,java.lang.Object> params,
BusinessType businessType)
异步按当前用户导出
|
com.xforceplus.entity.ExcelFileStore |
asyncExcelExport(java.util.Map<java.lang.String,java.lang.Object> params,
BusinessType businessType,
java.lang.Long userId,
java.lang.Long tenantId)
异步按当前用户导出数据
|
com.xforceplus.entity.ExcelFileStore |
create(ExcelFileDTO excelFileDTO)
创建上传文件数据
|
void |
destroy() |
ExcelFileDTO |
rerun(ExcelFileDTO excelFileDTO)
重跑业务
|
public static final java.lang.String ASYNC_EXCEL_EXPORT_PROCESS_EVENT_BUS
public ExportFileService(@Qualifier(value="excelExportProcess")
ExcelProcess excelProcess,
com.xforceplus.dao.ExcelFileStoreDao excelFileStoreDao)
public void destroy()
throws java.lang.Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.Exception@Transactional(rollbackFor=java.lang.Exception.class)
public com.xforceplus.entity.ExcelFileStore asyncExcelExport(java.util.Map<java.lang.String,java.lang.Object> params,
BusinessType businessType)
params - MapbusinessType - 导出业务类型@Transactional(rollbackFor=java.lang.Exception.class)
public com.xforceplus.entity.ExcelFileStore asyncExcelExport(java.util.Map<java.lang.String,java.lang.Object> params,
BusinessType businessType,
java.lang.Long userId,
java.lang.Long tenantId)
params - 查询参数userId - 用户IDtenantId - 租户ID@Transactional(rollbackFor=java.lang.Exception.class) public com.xforceplus.entity.ExcelFileStore create(ExcelFileDTO excelFileDTO)
excelFileDTO - ImportFileDTO@Transactional(rollbackFor=java.lang.Exception.class) public ExcelFileDTO rerun(ExcelFileDTO excelFileDTO)
excelFileDTO - ExcelFileDTO