Package com.bytedesk.kbase.faq.batch
Class FaqBatchService
java.lang.Object
com.bytedesk.kbase.faq.batch.FaqBatchService
FAQ批量导入服务
用于启动和管理FAQ批量导入作业
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FaqExcelReader
private FaqItemProcessor
private org.springframework.batch.core.Job
private org.springframework.batch.core.explore.JobExplorer
private org.springframework.batch.core.launch.JobLauncher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.JobExecution
getJobExecution
(Long jobExecutionId) 检查作业执行状态org.springframework.batch.core.JobExecution
启动FAQ批量导入作业
-
Field Details
-
jobLauncher
@Autowired private org.springframework.batch.core.launch.JobLauncher jobLauncher -
importFaqJob
@Autowired @Qualifier("importFaqJob") private org.springframework.batch.core.Job importFaqJob -
jobExplorer
@Autowired private org.springframework.batch.core.explore.JobExplorer jobExplorer -
faqItemProcessor
-
faqExcelReader
-
-
Constructor Details
-
FaqBatchService
public FaqBatchService()
-
-
Method Details
-
importFaqFromExcel
public org.springframework.batch.core.JobExecution importFaqFromExcel(String filePath, String kbType, String fileUid, String kbUid, String orgUid) throws Exception 启动FAQ批量导入作业- Parameters:
filePath
- Excel文件路径kbType
- 知识库类型fileUid
- 文件UIDkbUid
- 知识库UIDorgUid
- 组织UID- Returns:
- 作业执行实例
- Throws:
Exception
- 导入过程中的异常
-
getJobExecution
检查作业执行状态- Parameters:
jobExecutionId
- 作业执行ID- Returns:
- 作业执行实例
-