Merge remote-tracking branch 'origin/master'
# Conflicts: # cdp-tools/cdp-tool-dy/dy-tool-member/dy-tool-member-api/src/main/java/com/baiye/controller/TiktokVideoCommentController.javamaster
commit
0d3eb26a15
@ -0,0 +1,37 @@
|
||||
package com.baiye.job.dy_tool_member;
|
||||
|
||||
import com.baiye.service.impl.TiktokSopServiceImpl;
|
||||
import com.dangdang.ddframe.job.api.ShardingContext;
|
||||
import com.dangdang.ddframe.job.api.simple.SimpleJob;
|
||||
import com.example.autoconfig.ElasticSimpleJob;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author jt
|
||||
*/
|
||||
@ElasticSimpleJob(jobName = "TiktokCommentSearchVideoJob", cron = "0 0 0/2 * * ? ")
|
||||
//@ElasticSimpleJob(jobName = "TiktokCommentSearchVideoJob", cron = "0/1 * * * * ? ", shardingTotalCount = 1, overwrite = true, jobEvent = false)
|
||||
@Slf4j
|
||||
@Component
|
||||
public class TiktokCommentSearchVideoJob implements SimpleJob {
|
||||
|
||||
private static TiktokCommentSearchVideoJob videoJob;
|
||||
//
|
||||
// @Resource
|
||||
// private TiktokSopServiceImpl tiktokSopService;
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
videoJob = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ShardingContext shardingContext) {
|
||||
log.info("===========================开始执行(评论sop获取视频)定时任务===========================");
|
||||
// videoJob.tiktokSopService.search();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue