|
@@ -20,7 +20,9 @@ import cn.com.ctop.oa.modules.service.IWechatCheckinDataService;
|
|
import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
import cn.com.ctop.oa.modules.service.IWechatUserListService;
|
|
import cn.com.ctop.oa.modules.service.IWechatUserListService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
|
|
+import cn.com.ctop.toutiao.modules.report.service.IByteDanceVideoReportDailyService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
|
|
|
|
+import cn.com.ctop.toutiao.modules.report.service.IBytedanceReportService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IReportService;
|
|
import cn.com.ctop.toutiao.modules.report.service.IReportService;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -260,6 +262,18 @@ public class SampleTest {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IBytedanceReportService bytedanceReportService;
|
|
|
|
+ @Test
|
|
|
|
+ public void loadBytedanceVideoReportData(){
|
|
|
|
+ Date getDate = DateUtils.addDay(new Date(), -1);
|
|
|
|
+ String date = DateUtils.formatDate(getDate);
|
|
|
|
+ List<CtopOauthToken> tokens = tokenService.selectToutiaoToken();
|
|
|
|
+ for (CtopOauthToken token:tokens){
|
|
|
|
+ bytedanceReportService.bytedanceVideoMaterialReport(token, date, date);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
public void loadKuaishouHourlyReportData() {
|
|
public void loadKuaishouHourlyReportData() {
|
|
Date getDate = new Date();
|
|
Date getDate = new Date();
|
|
@@ -305,19 +319,6 @@ public class SampleTest {
|
|
private IKuaishouCostGroupService kuaishouCostGroupService;
|
|
private IKuaishouCostGroupService kuaishouCostGroupService;
|
|
@Autowired
|
|
@Autowired
|
|
private IAlarmEventSendService alarmEventSendService;
|
|
private IAlarmEventSendService alarmEventSendService;
|
|
-
|
|
|
|
- @Test
|
|
|
|
- public void addTest() {
|
|
|
|
- kuaishouCostGroupService.saveInfo();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Test
|
|
|
|
- public void sendTest() {
|
|
|
|
- //检查频率 HOUR - 每小时;HALF_HOUR-每半小时
|
|
|
|
- alarmEventSendService.matchAlarmRules("HOUR");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IWechatCheckinDataService wechatCheckinDataService;
|
|
private IWechatCheckinDataService wechatCheckinDataService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -353,6 +354,16 @@ public class SampleTest {
|
|
public void kuaishouDeleteComment(){
|
|
public void kuaishouDeleteComment(){
|
|
kuaiShouCommentService.shieldComment(8018853L);
|
|
kuaiShouCommentService.shieldComment(8018853L);
|
|
}
|
|
}
|
|
|
|
+ @Autowired
|
|
|
|
+ private IByteDanceVideoReportDailyService videoReportDailyService;
|
|
|
|
|
|
|
|
+ @Test
|
|
|
|
+ public void formatVideoReportData(){
|
|
|
|
+ for(int i=1;i<45;i++){
|
|
|
|
+ Date getDate = DateUtils.addDay(new Date(), -i);
|
|
|
|
+ String date = DateUtils.formatDate(getDate);
|
|
|
|
+ videoReportDailyService.videoInfoList(date, date);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|