|
@@ -136,7 +136,7 @@ public class KuaishouVideoRelateCreativesServiceImpl extends ServiceImpl<Kuaisho
|
|
kuaishouVideoRelateCreativesMapper.insertBatch(videolist);
|
|
kuaishouVideoRelateCreativesMapper.insertBatch(videolist);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- log.info("频库-视频关联创意数查询失败,accountId:{},返回信息:{}", accountId, resultJson);
|
|
|
|
|
|
+ log.info("频库-视频关联创意数查询失败,入参:{},返回结果:{}", params, resultJson);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -151,17 +151,17 @@ public class KuaishouVideoRelateCreativesServiceImpl extends ServiceImpl<Kuaisho
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<KuaishouVideoRelateCreatives> listByParams(Long accountId,Integer matNum) {
|
|
|
|
|
|
+ public List<KuaishouVideoRelateCreatives> listByParams(Long accountId, Integer matNum) {
|
|
QueryWrapper<KuaishouVideoRelateCreatives> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<KuaishouVideoRelateCreatives> queryWrapper = new QueryWrapper<>();
|
|
- if(null!=accountId&&accountId!=0){
|
|
|
|
- queryWrapper.eq("account_id",accountId);
|
|
|
|
|
|
+ if (null != accountId && accountId != 0) {
|
|
|
|
+ queryWrapper.eq("account_id", accountId);
|
|
}
|
|
}
|
|
- if(null == matNum||matNum == 0){
|
|
|
|
|
|
+ if (null == matNum || matNum == 0) {
|
|
matNum = 10;
|
|
matNum = 10;
|
|
}
|
|
}
|
|
- queryWrapper.le("creative_count",30);
|
|
|
|
|
|
+ queryWrapper.le("creative_count", 30);
|
|
queryWrapper.orderByDesc("stat_date");
|
|
queryWrapper.orderByDesc("stat_date");
|
|
- queryWrapper.last("limit "+matNum);
|
|
|
|
|
|
+ queryWrapper.last("limit " + matNum);
|
|
return this.list(queryWrapper);
|
|
return this.list(queryWrapper);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -188,18 +188,20 @@ public class KuaishouVideoRelateCreativesServiceImpl extends ServiceImpl<Kuaisho
|
|
int count = 0;
|
|
int count = 0;
|
|
for (KuaiShouVideoGet video : KuaiShouVideoGets) {
|
|
for (KuaiShouVideoGet video : KuaiShouVideoGets) {
|
|
count++;
|
|
count++;
|
|
- if (count < 20) {
|
|
|
|
|
|
+ if (count < 19) {
|
|
photoIds.add(video.getPhotoId());
|
|
photoIds.add(video.getPhotoId());
|
|
statdateMap.put(video.getPhotoId(), video);
|
|
statdateMap.put(video.getPhotoId(), video);
|
|
} else {
|
|
} else {
|
|
photoIds.add(video.getPhotoId());
|
|
photoIds.add(video.getPhotoId());
|
|
- statdateMap.put(video.getPhotoId(),video);
|
|
|
|
|
|
+ statdateMap.put(video.getPhotoId(), video);
|
|
dateList.add(photoIds);
|
|
dateList.add(photoIds);
|
|
photoIds = new JSONArray();
|
|
photoIds = new JSONArray();
|
|
count = 0;
|
|
count = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- dateList.add(photoIds);
|
|
|
|
|
|
+ if (photoIds.size() > 0) {
|
|
|
|
+ dateList.add(photoIds);
|
|
|
|
+ }
|
|
this.videoRelateCreatives(accountId, dateList, statdateMap);
|
|
this.videoRelateCreatives(accountId, dateList, statdateMap);
|
|
}
|
|
}
|
|
}
|
|
}
|