|
@@ -3,6 +3,7 @@ package cn.com.ctop.job.kuaishou.data.service.impl;
|
|
|
import cn.com.ctop.job.kuaishou.data.constant.KuaishouConstant;
|
|
import cn.com.ctop.job.kuaishou.data.constant.KuaishouConstant;
|
|
|
import cn.com.ctop.job.kuaishou.data.entity.KuaishouAccountReportHourly;
|
|
import cn.com.ctop.job.kuaishou.data.entity.KuaishouAccountReportHourly;
|
|
|
import cn.com.ctop.job.kuaishou.data.mapper.KuaishouAccountReportHourlyMapper;
|
|
import cn.com.ctop.job.kuaishou.data.mapper.KuaishouAccountReportHourlyMapper;
|
|
|
|
|
+import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportDailyService;
|
|
|
import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportHourlyService;
|
|
import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportHourlyService;
|
|
|
import cn.com.ctop.job.kuaishou.data.utils.DateUtils;
|
|
import cn.com.ctop.job.kuaishou.data.utils.DateUtils;
|
|
|
import cn.com.ctop.job.kuaishou.data.utils.HttpUtils;
|
|
import cn.com.ctop.job.kuaishou.data.utils.HttpUtils;
|
|
@@ -33,6 +34,8 @@ public class KuaishouAccountReportHourlyServiceImpl extends ServiceImpl<Kuaishou
|
|
|
private String postUrl;
|
|
private String postUrl;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private KuaishouAccountReportHourlyMapper accountReportHourlyMapper;
|
|
private KuaishouAccountReportHourlyMapper accountReportHourlyMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IKuaishouAccountReportDailyService reportDailyService;
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -196,7 +199,8 @@ public class KuaishouAccountReportHourlyServiceImpl extends ServiceImpl<Kuaishou
|
|
|
reportHourly.setEventAdWatchTimes(returnJson.getLong("event_ad_watch_times"));
|
|
reportHourly.setEventAdWatchTimes(returnJson.getLong("event_ad_watch_times"));
|
|
|
addList.add(reportHourly);
|
|
addList.add(reportHourly);
|
|
|
}
|
|
}
|
|
|
- accountReportHourlyMapper.replaceBatch(addList);
|
|
|
|
|
|
|
+ accountReportHourlyMapper.replaceBatch(addList);
|
|
|
log.info("账户时报数据获取完成:accountId:{}", advertiserId);
|
|
log.info("账户时报数据获取完成:accountId:{}", advertiserId);
|
|
|
|
|
+ reportDailyService.sendMessage(advertiserId, startDate, endDate, "hourly");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|