|
@@ -1,34 +1,31 @@
|
|
package cn.cslg.pas.service.upLoadPatent;
|
|
package cn.cslg.pas.service.upLoadPatent;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.apache.commons.logging.Log;
|
|
|
|
-import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.quartz.DisallowConcurrentExecution;
|
|
import org.quartz.DisallowConcurrentExecution;
|
|
import org.quartz.JobExecutionContext;
|
|
import org.quartz.JobExecutionContext;
|
|
import org.quartz.JobExecutionException;
|
|
import org.quartz.JobExecutionException;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.scheduling.quartz.QuartzJobBean;
|
|
import org.springframework.scheduling.quartz.QuartzJobBean;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.Arrays;
|
|
|
|
-import java.util.Date;
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
- * 定义任务
|
|
|
|
|
|
+ * 调度任务类
|
|
*/
|
|
*/
|
|
@Slf4j
|
|
@Slf4j
|
|
@DisallowConcurrentExecution
|
|
@DisallowConcurrentExecution
|
|
|
|
+@RequiredArgsConstructor
|
|
public class PatentToDbTaskJob extends QuartzJobBean {
|
|
public class PatentToDbTaskJob extends QuartzJobBean {
|
|
-
|
|
|
|
|
|
+ private final ExcuteTaskService excuteTaskService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void executeInternal(JobExecutionContext context) throws JobExecutionException {
|
|
public void executeInternal(JobExecutionContext context) throws JobExecutionException {
|
|
|
|
|
|
- //1获得任务信息
|
|
|
|
- // 2根据不同的任务类型,选择不同方法上传任务
|
|
|
|
|
|
+ //1.获得任务信息
|
|
|
|
+
|
|
|
|
+ //2.根据不同的任务类型,选择不同方法上传任务
|
|
|
|
+ //2.1 Excel导入专利任务
|
|
|
|
+ excuteTaskService.executeExcelTask();
|
|
|
|
|
|
|
|
+ //2.2 网站导入专利任务
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|