|
@@ -251,17 +251,17 @@ public class SampleTest {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void loadKuaishouData(){
|
|
|
+ public void loadKuaishouData() {
|
|
|
Date getDate = DateUtils.addDay(new Date(), -1);
|
|
|
//1:查询当日数据
|
|
|
List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
|
- for (CtopOauthToken token:tokens){
|
|
|
+ for (CtopOauthToken token : tokens) {
|
|
|
kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getDate, getDate);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void loadKuaishouHourlyReportData(){
|
|
|
+ public void loadKuaishouHourlyReportData() {
|
|
|
Date getDate = new Date();
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
|
|
|
String hour = simpleDateFormat.format(getDate);
|
|
@@ -273,6 +273,7 @@ public class SampleTest {
|
|
|
Date finalGetDate = getDate;
|
|
|
tokens.forEach(token -> kuaishouInterfaceService.getAdvertiserReportHourly(token, finalGetDate, finalGetDate));
|
|
|
}
|
|
|
+
|
|
|
@Autowired
|
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
|
|
|
@@ -342,11 +343,12 @@ public class SampleTest {
|
|
|
|
|
|
@Autowired
|
|
|
IRuleKuaiShouPlanService kuaiShouPlanService;
|
|
|
+
|
|
|
@Test
|
|
|
- public void kuaishouRuleData(){
|
|
|
+ public void kuaishouRuleData() {
|
|
|
//kuaiShouPlanService.cleanRuleDataPlan(3429620L,"2020-12-07","2020-12-07",1);
|
|
|
- kuaiShouPlanService.cleanRuleDataUnit(3429620L,"2020-12-07","2020-12-07",1);
|
|
|
- kuaiShouPlanService.cleanRuleDataTarget(3429620L,"2020-12-07","2020-12-07",1);
|
|
|
+ kuaiShouPlanService.cleanRuleDataUnit(3429620L, "2020-12-07", "2020-12-07", 1);
|
|
|
+ // kuaiShouPlanService.cleanRuleDataTarget(3429620L,"2020-12-07","2020-12-07",1);
|
|
|
|
|
|
}
|
|
|
|