|
@@ -9,12 +9,12 @@ import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.report.mapper.EtlKuaishouAccountMaterialReportDailyMapper;
|
|
import cn.com.ctop.kuaishou.modules.report.mapper.EtlKuaishouAccountMaterialReportDailyMapper;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyImageService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyImageService;
|
|
|
|
+import cn.com.ctop.oa.modules.service.IAppchatCreateService;
|
|
import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
import cn.com.ctop.toutiao.modules.link.service.IETLReportBytedanceVideoService;
|
|
import cn.com.ctop.toutiao.modules.link.service.IETLReportBytedanceVideoService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceCampaignService;
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceCampaignService;
|
|
import cn.com.ctop.toutiao.modules.report.service.*;
|
|
import cn.com.ctop.toutiao.modules.report.service.*;
|
|
-import com.csvreader.CsvReader;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.jeecg.common.util.RedisUtil;
|
|
import org.jeecg.common.util.RedisUtil;
|
|
@@ -26,10 +26,7 @@ import org.springframework.test.context.ActiveProfiles;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
-import java.io.IOException;
|
|
|
|
-import java.nio.charset.Charset;
|
|
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
-import java.util.ArrayList;
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -52,13 +49,18 @@ public class SampleTest {
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
@Autowired
|
|
@Autowired
|
|
private RedisUtil redisUtil;
|
|
private RedisUtil redisUtil;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IAppchatCreateService appchatCreateService;
|
|
|
|
+
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void loadKuaishouCookie() throws ParseException {
|
|
public void loadKuaishouCookie() throws ParseException {
|
|
|
|
|
|
- redisUtil.set("11sdfhgjksdhfjksdhfjksdhfkjsjkfhkjsddhfjksdhfkjhsjkfhjkshfjksdhfjksdhfjkshdjkfhsjkdfhkjsd1","hahahaha",5);
|
|
|
|
|
|
+ // appchatCreateService.createAppChat(null, null, null);
|
|
|
|
+ appchatCreateService.getChatInfo(null);
|
|
|
|
+ /* redisUtil.set("11sdfhgjksdhfjksdhfjksdhfkjsjkfhkjsddhfjksdhfkjhsjkfhjkshfjksdhfjksdhfjkshdjkfhsjkdfhkjsd1","hahahaha",5);
|
|
Object o = redisUtil.get("11sdfhgjksdhfjksdhfjksdhfkjsjkfhkjsddhfjksdhfkjhsjkfhjkshfjksdhfjksdhfjkshdjkfhsjkdfhkjsd1");
|
|
Object o = redisUtil.get("11sdfhgjksdhfjksdhfjksdhfkjsjkfhkjsddhfjksdhfkjhsjkfhjkshfjksdhfjksdhfjkshdjkfhsjkdfhkjsd1");
|
|
- System.err.println(o);
|
|
|
|
|
|
+ System.err.println(o);*/
|
|
|
|
|
|
|
|
|
|
/*try {
|
|
/*try {
|
|
@@ -222,7 +224,7 @@ public class SampleTest {
|
|
private IEtlBytedanceReportVideoDailyService etlBytedanceReportVideoDailyService;
|
|
private IEtlBytedanceReportVideoDailyService etlBytedanceReportVideoDailyService;
|
|
|
|
|
|
@Test
|
|
@Test
|
|
- public void etlBytedanceVideoReportInfo()throws Exception{
|
|
|
|
|
|
+ public void etlBytedanceVideoReportInfo() throws Exception {
|
|
etlBytedanceReportVideoDailyService.etlBytedanceVideo();
|
|
etlBytedanceReportVideoDailyService.etlBytedanceVideo();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -230,7 +232,7 @@ public class SampleTest {
|
|
private IReportService reportService;
|
|
private IReportService reportService;
|
|
|
|
|
|
@Test
|
|
@Test
|
|
- public void loadBytedanceAccountReport(){
|
|
|
|
|
|
+ public void loadBytedanceAccountReport() {
|
|
/**
|
|
/**
|
|
* 1692555408132110
|
|
* 1692555408132110
|
|
* 1692555631713287
|
|
* 1692555631713287
|
|
@@ -238,19 +240,19 @@ public class SampleTest {
|
|
* 1696734333251598
|
|
* 1696734333251598
|
|
*/
|
|
*/
|
|
CtopOauthToken token1 = tokenService.getTokenByAccountId(1692555408132110L);
|
|
CtopOauthToken token1 = tokenService.getTokenByAccountId(1692555408132110L);
|
|
- reportService.getAdvertiserReport(token1, DateUtils.parseDate("2021-05-01","yyyy-MM-dd"), DateUtils.parseDate("2021-05-12","yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
|
|
|
+ reportService.getAdvertiserReport(token1, DateUtils.parseDate("2021-05-01", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-12", "yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
CtopOauthToken token2 = tokenService.getTokenByAccountId(1692555631713287L);
|
|
CtopOauthToken token2 = tokenService.getTokenByAccountId(1692555631713287L);
|
|
- reportService.getAdvertiserReport(token2, DateUtils.parseDate("2021-05-01","yyyy-MM-dd"), DateUtils.parseDate("2021-05-12","yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
|
|
|
+ reportService.getAdvertiserReport(token2, DateUtils.parseDate("2021-05-01", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-12", "yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
CtopOauthToken token3 = tokenService.getTokenByAccountId(1696734332089352L);
|
|
CtopOauthToken token3 = tokenService.getTokenByAccountId(1696734332089352L);
|
|
- reportService.getAdvertiserReport(token3, DateUtils.parseDate("2021-05-01","yyyy-MM-dd"), DateUtils.parseDate("2021-05-12","yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
|
|
|
+ reportService.getAdvertiserReport(token3, DateUtils.parseDate("2021-05-01", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-12", "yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
CtopOauthToken token4 = tokenService.getTokenByAccountId(1696734333251598L);
|
|
CtopOauthToken token4 = tokenService.getTokenByAccountId(1696734333251598L);
|
|
- reportService.getAdvertiserReport(token4, DateUtils.parseDate("2021-05-01","yyyy-MM-dd"), DateUtils.parseDate("2021-05-12","yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
|
|
|
+ reportService.getAdvertiserReport(token4, DateUtils.parseDate("2021-05-01", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-12", "yyyy-MM-dd"), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
|
|
|
CtopOauthToken token5 = tokenService.getTokenByAccountId(10129666L);
|
|
CtopOauthToken token5 = tokenService.getTokenByAccountId(10129666L);
|
|
- kuaishouInterfaceService.getAdvertiserReportDaily(token5, DateUtils.parseDate("2021-05-07","yyyy-MM-dd"), DateUtils.parseDate("2021-05-11","yyyy-MM-dd"), null);
|
|
|
|
|
|
+ kuaishouInterfaceService.getAdvertiserReportDaily(token5, DateUtils.parseDate("2021-05-07", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-11", "yyyy-MM-dd"), null);
|
|
CtopOauthToken token6 = tokenService.getTokenByAccountId(10097961L);
|
|
CtopOauthToken token6 = tokenService.getTokenByAccountId(10097961L);
|
|
- kuaishouInterfaceService.getAdvertiserReportDaily(token6, DateUtils.parseDate("2021-05-07","yyyy-MM-dd"), DateUtils.parseDate("2021-05-11","yyyy-MM-dd"), null);
|
|
|
|
|
|
+ kuaishouInterfaceService.getAdvertiserReportDaily(token6, DateUtils.parseDate("2021-05-07", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-11", "yyyy-MM-dd"), null);
|
|
CtopOauthToken token7 = tokenService.getTokenByAccountId(10098039L);
|
|
CtopOauthToken token7 = tokenService.getTokenByAccountId(10098039L);
|
|
- kuaishouInterfaceService.getAdvertiserReportDaily(token7, DateUtils.parseDate("2021-05-07","yyyy-MM-dd"), DateUtils.parseDate("2021-05-11","yyyy-MM-dd"), null);
|
|
|
|
|
|
+ kuaishouInterfaceService.getAdvertiserReportDaily(token7, DateUtils.parseDate("2021-05-07", "yyyy-MM-dd"), DateUtils.parseDate("2021-05-11", "yyyy-MM-dd"), null);
|
|
}
|
|
}
|
|
}
|
|
}
|