|
@@ -7,10 +7,8 @@ import cn.com.ctop.common.module.utils.Check;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
import cn.com.ctop.common.module.utils.ResultMapUtils;
|
|
|
import cn.com.ctop.common.module.utils.StatusCode;
|
|
|
-import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouCampaignService;
|
|
|
-import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouDailyReportTaskService;
|
|
|
-import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouHistoryReportTaskService;
|
|
|
-import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouInterfaceService;
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouVideoGet;
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.*;
|
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedancePlanDailyReportService;
|
|
@@ -94,6 +92,48 @@ public class TestController {
|
|
|
|
|
|
@Autowired
|
|
|
private IMaterialCutFrameService cutFrameService;
|
|
|
+ @Autowired
|
|
|
+ IKuaiShouVideoGetService videoGetService;
|
|
|
+ @Autowired
|
|
|
+ private IKuaiShouVideoTimeService timeService;
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/getVideoTime")
|
|
|
+ public void getVideoTime() throws InterruptedException {
|
|
|
+ QueryWrapper<KuaiShouVideoGet> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("channel_type", 0);
|
|
|
+ List<KuaiShouVideoGet> list = videoGetService.list(queryWrapper);
|
|
|
+ for (KuaiShouVideoGet video : list) {
|
|
|
+ Date date = timeService.getVideoTime(video.getPhotoId(), video.getAccountId());
|
|
|
+ if (Check.isNull(date)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ video.setUploadDate(date);
|
|
|
+ videoGetService.updateById(video);
|
|
|
+ Thread.sleep(100);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/getSuZhao")
|
|
|
+ public void getSuZhao() throws InterruptedException {
|
|
|
+ QueryWrapper<KuaiShouVideoGet> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("channel_type", 1);
|
|
|
+ List<KuaiShouVideoGet> list = videoGetService.list(queryWrapper);
|
|
|
+ for (KuaiShouVideoGet video : list) {
|
|
|
+ Date date = timeService.getVideoTime(video.getPhotoId(), video.getAccountId());
|
|
|
+ if (Check.isNull(date)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ video.setUploadDate(date);
|
|
|
+ videoGetService.updateById(video);
|
|
|
+ Thread.sleep(100);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/getAccountList")
|