|
@@ -6,11 +6,9 @@ import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
import cn.com.ctop.common.module.message.handle.impl.EmailSendMsgHandle;
|
|
|
import cn.com.ctop.common.module.service.*;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
-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.graphql.service.IKuaishouWebInterfaceService;
|
|
|
-import cn.com.ctop.kuaishou.modules.report.mapper.KuaishouAgentAccountMapper;
|
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyAgentService;
|
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceFundDailyService;
|
|
@@ -37,8 +35,6 @@ import java.util.concurrent.CountDownLatch;
|
|
|
import java.util.concurrent.ExecutorService;
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
-import static org.jeecg.common.util.DateUtils.getAnotherDay;
|
|
|
-
|
|
|
@RunWith(SpringRunner.class)
|
|
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
|
|
@ActiveProfiles("wps")
|
|
@@ -201,22 +197,6 @@ public class SampleTest {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Autowired
|
|
|
- private IKuaiShouDailyReportTaskService dailyReportTaskService;
|
|
|
- /**
|
|
|
- * 测试获取快手图片消耗数据入库
|
|
|
- */
|
|
|
- @Test
|
|
|
- public void loadKuaishouImageTaskFile(){
|
|
|
- String nowDate = DateUtils.getDate("yyyy-MM-dd");
|
|
|
- List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
|
- for(int i=1;i<15;i++){
|
|
|
- String statDate = getAnotherDay("yyyy-MM-dd", nowDate, -i);
|
|
|
- tokens.forEach(token -> dailyReportTaskService.getTaskList(token.getAccountId(), token.getAccessToken(), statDate));
|
|
|
- }
|
|
|
- // 查询快手token
|
|
|
- }
|
|
|
-
|
|
|
@Test
|
|
|
public void testLoadBytedanceImageData(){
|
|
|
List<CtopOauthToken>tokens = tokenService.selectToutiaoToken();
|
|
@@ -238,8 +218,7 @@ public class SampleTest {
|
|
|
System.out.println("素材数据获取完成");
|
|
|
|
|
|
}
|
|
|
- @Autowired
|
|
|
- private KuaishouAgentAccountMapper kuaishouAgentAccountMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IKuaishouReportDailyAgentService kuaishouReportDailyAgentService;
|
|
|
@Test
|
|
@@ -279,17 +258,6 @@ public class SampleTest {
|
|
|
@Autowired
|
|
|
IUReportService uReportService;
|
|
|
|
|
|
- @Test
|
|
|
- public void loadBytedanceData(){
|
|
|
- List<CtopOauthToken> tokens = tokenService.selectToutiaoToken();
|
|
|
- for (int i=0;i<tokens.size();i++) {
|
|
|
- for(int j=0;j<4;j++){
|
|
|
- String getDate = DateUtils.formatDate(DateUtils.addDay(new Date(), -j));
|
|
|
- bytedanceReportService.bytedanceVideoMaterialReport(tokens.get(i), getDate, getDate);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
@Autowired
|
|
|
private IBytedanceReportService bytedanceReportService;
|
|
|
@Test
|