|
@@ -0,0 +1,40 @@
|
|
|
+package com.tzld.piaoquan.longarticle.job;
|
|
|
+
|
|
|
+import com.tzld.piaoquan.longarticle.service.local.impl.MatchVideoServiceImpl;
|
|
|
+import com.tzld.piaoquan.longarticle.utils.LarkRobotUtil;
|
|
|
+import com.xxl.job.core.biz.model.ReturnT;
|
|
|
+import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+@Slf4j
|
|
|
+@Component
|
|
|
+public class MatchVideoJob {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ MatchVideoServiceImpl matchVideoService;
|
|
|
+
|
|
|
+
|
|
|
+ @XxlJob("kimiContentJob")
|
|
|
+ public ReturnT<String> kimiContentJob(String param) {
|
|
|
+ try {
|
|
|
+ matchVideoService.kimiContent();
|
|
|
+ } catch (Exception e) {
|
|
|
+ LarkRobotUtil.sendMessage("kimiContentJob异常,请及时查看,@薛一鸣");
|
|
|
+ log.error("kimiContentJob error", e);
|
|
|
+ }
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
+ }
|
|
|
+
|
|
|
+ @XxlJob("matchCrawlerVideo")
|
|
|
+ public ReturnT<String> matchCrawlerVideoJob(String param) {
|
|
|
+ try {
|
|
|
+ matchVideoService.matchCrawlerVideo();
|
|
|
+ } catch (Exception e) {
|
|
|
+ LarkRobotUtil.sendMessage("matchCrawlerVideoJob异常,请及时查看,@薛一鸣");
|
|
|
+ log.error("matchCrawlerVideoJob error", e);
|
|
|
+ }
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
+ }
|
|
|
+}
|