Class FaqBatchService

java.lang.Object
com.bytedesk.kbase.faq.batch.FaqBatchService

@Service public class FaqBatchService extends Object
FAQ批量导入服务 用于启动和管理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

      @Autowired private FaqItemProcessor faqItemProcessor
    • faqExcelReader

      @Autowired private FaqExcelReader 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 - 文件UID
      kbUid - 知识库UID
      orgUid - 组织UID
      Returns:
      作业执行实例
      Throws:
      Exception - 导入过程中的异常
    • getJobExecution

      public org.springframework.batch.core.JobExecution getJobExecution(Long jobExecutionId)
      检查作业执行状态
      Parameters:
      jobExecutionId - 作业执行ID
      Returns:
      作业执行实例