Przeglądaj źródła

修改查询逻辑

songyh 4 lat temu
rodzic
commit
321ec3ae5c

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/impl/FileInfoServiceImpl.java

@@ -51,7 +51,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
     private String imageUploadPath;
     @Value("${jeecg.path.video-upload}")
     private String videoUploadPath;
-    @Autowired
+    @Resource
     FileInfoMapper fileInfoMapper;
     @Resource
     private ICtopOauthTokenService ctopOauthTokenService;

+ 18 - 0
module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceAiCreateJob.java

@@ -0,0 +1,18 @@
+package cn.com.ctop.job.bytedance.handler;
+
+import cn.com.ctop.common.module.utils.HttpUtils;
+import com.xxl.job.core.handler.annotation.XxlJob;
+import org.jeecg.common.util.DateUtils;
+import org.springframework.stereotype.Component;
+
+import java.util.Date;
+
+@Component
+public class BytedanceAiCreateJob {
+    private static final String URLPREFIX = "http://118.24.244.213:8080/bytedance-api/autoCreateCreative?hour=";
+    @XxlJob("bytedanceAutoCreateJob")
+    public void execute() throws Exception {
+        String hour = DateUtils.getNowHour(new Date());
+        HttpUtils.httpGet(URLPREFIX + hour, null, null);
+    }
+}

+ 0 - 1
module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceEtlVideoJob.java

@@ -40,6 +40,5 @@ public class BytedanceEtlVideoJob {
     @XxlJob("updBytedanceVideoJob")
     public void updBytedanceVideoJob() throws Exception {
         etlBytedanceReportVideoDailyService.updBytedanceVideo();
-
     }
 }