|
|
@@ -6,6 +6,7 @@ import cn.com.ctop.job.adq.data.utils.Check;
|
|
|
import cn.com.ctop.job.adq.data.utils.DateUtils;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -132,8 +133,13 @@ public class AdqRetryReportJob {
|
|
|
List<String> assetIds = new ArrayList<>();
|
|
|
if (!Check.isNull(marketingAssetIds)) {
|
|
|
assetIds = marketingAssetIds.toJavaList(String.class);
|
|
|
+ List<List<String>> chunks = Lists.partition(assetIds, 100);
|
|
|
+ chunks.forEach(chunk -> {
|
|
|
+ assetReportService.getAdqAssetInfo(marketingTargetType, chunk, advertiserId, accessToken, null, id, isSend);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ assetReportService.getAdqAssetInfo(marketingTargetType, assetIds, advertiserId, accessToken, null, id, isSend);
|
|
|
}
|
|
|
- assetReportService.getAdqAssetInfo(marketingTargetType, assetIds, advertiserId, accessToken, null, id, isSend);
|
|
|
}
|
|
|
}
|
|
|
});
|