|
@@ -227,32 +227,6 @@ public class TestController {
|
|
|
dailyAgentService.getAgentReportByPage(startDate, endDate);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- @GetMapping(value = "/getData")
|
|
|
- public void getData() {
|
|
|
- //1:查询当日数据
|
|
|
- List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
|
- Date endDate = new Date();
|
|
|
- for (int i = 0; i < 8; i++) {
|
|
|
- Date getStartDate = DateUtils.addDay(endDate, -i);
|
|
|
- for (CtopOauthToken token : tokens) {
|
|
|
- executorService.submit(new Runnable() {
|
|
|
- @Override
|
|
|
- public void run() {
|
|
|
- kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getStartDate, getStartDate);
|
|
|
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- String format = simpleDateFormat.format(getStartDate);
|
|
|
- kuaiShouReportDailyMaterialService.getMaterialReportByAccountIdAndStatDate(token.getAccountId(), token.getAccessToken(), format, format, 1);
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
@GetMapping(value = "/dailyReport")
|
|
|
public void dailyReport() {
|
|
|
List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_KUAISHOU);
|