|
@@ -673,6 +673,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//创建异步任务
|
|
//创建异步任务
|
|
|
|
+ @Override
|
|
public void bytedanceAsyncTaskCreate () {
|
|
public void bytedanceAsyncTaskCreate () {
|
|
String startDate = DateUtils.formatDate(DateUtils.addDay(new Date(), -1));
|
|
String startDate = DateUtils.formatDate(DateUtils.addDay(new Date(), -1));
|
|
String endDate = DateUtils.formatDate(DateUtils.addDay(new Date(), -31));
|
|
String endDate = DateUtils.formatDate(DateUtils.addDay(new Date(), -31));
|
|
@@ -782,6 +783,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
}
|
|
}
|
|
|
|
|
|
//获取任务列表
|
|
//获取任务列表
|
|
|
|
+ @Override
|
|
public void bytedanceAsyncTaskGet(){
|
|
public void bytedanceAsyncTaskGet(){
|
|
QueryWrapper<BytedanceDailyReportTask> taskQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<BytedanceDailyReportTask> taskQueryWrapper = new QueryWrapper<>();
|
|
//查询三种状态的信息--任务已创建、任务执行中、任务处理中
|
|
//查询三种状态的信息--任务已创建、任务执行中、任务处理中
|
|
@@ -972,6 +974,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
|
|
|
/////////////////////////////////////////////////////////\
|
|
/////////////////////////////////////////////////////////\
|
|
//素材报表
|
|
//素材报表
|
|
|
|
+ @Override
|
|
public void bytedanceMaterialReportRetry(CtopOauthToken token, String startDate, String endDate){
|
|
public void bytedanceMaterialReportRetry(CtopOauthToken token, String startDate, String endDate){
|
|
//CtopOauthToken token = ctopOauthTokenService.getTokenByAccountId(accountId);
|
|
//CtopOauthToken token = ctopOauthTokenService.getTokenByAccountId(accountId);
|
|
Long accountId = token.getAccountId();
|
|
Long accountId = token.getAccountId();
|
|
@@ -996,7 +999,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void bytedanceMaterialReport(CtopOauthToken token, String startDate, String endDate){
|
|
public void bytedanceMaterialReport(CtopOauthToken token, String startDate, String endDate){
|
|
- //CtopOauthToken token = ctopOauthTokenService.getTokenByAccountId(accountId);
|
|
|
|
Long accountId = token.getAccountId();
|
|
Long accountId = token.getAccountId();
|
|
log.info("头条素材报表当前accountId为:" + accountId);
|
|
log.info("头条素材报表当前accountId为:" + accountId);
|
|
Integer page = 1;
|
|
Integer page = 1;
|
|
@@ -1081,7 +1083,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(result.toString());
|
|
JSONObject json = JSONObject.parseObject(result.toString());
|
|
String jsonString = JSON.toJSONString(json);
|
|
String jsonString = JSON.toJSONString(json);
|
|
- //log.info("返回值为:" + jsonString);
|
|
|
|
|
|
+ log.info("返回值为:" + jsonString);
|
|
|
|
|
|
if(!Check.isNull(json)){
|
|
if(!Check.isNull(json)){
|
|
Integer code = json.getInteger("code");
|
|
Integer code = json.getInteger("code");
|
|
@@ -1263,6 +1265,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
return returnCode;
|
|
return returnCode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<BytedanceReportMaterialRetry> getRetryList(){
|
|
public List<BytedanceReportMaterialRetry> getRetryList(){
|
|
return bytedanceReportMaterialDailyMapper.getRetryList();
|
|
return bytedanceReportMaterialDailyMapper.getRetryList();
|
|
}
|
|
}
|