|
@@ -72,7 +72,7 @@ public class KuaiShouReportDailyMaterialServiceImpl extends ServiceImpl<KuaiShou
|
|
|
return;
|
|
|
}
|
|
|
List<KuaiShouReportDailyMaterial> addList = new ArrayList<>();
|
|
|
- List<Long> photoIdList = new ArrayList<>();
|
|
|
+ // List<Long> photoIdList = new ArrayList<>();
|
|
|
for (int i = 0; i < details.size(); i++) {
|
|
|
JSONObject detailJson = details.getJSONObject(i);
|
|
|
detailJson.put("photo_like", detailJson.getInteger("like"));
|
|
@@ -80,16 +80,24 @@ public class KuaiShouReportDailyMaterialServiceImpl extends ServiceImpl<KuaiShou
|
|
|
detailJson.put("photo_comment", detailJson.getInteger("comment"));
|
|
|
detailJson.put("photo_show", detailJson.getInteger("show"));
|
|
|
KuaiShouReportDailyMaterial material = JSONObject.toJavaObject(detailJson, KuaiShouReportDailyMaterial.class);
|
|
|
+ VideoGetvo videoGetvo = dailyMaterialMapper.getVideoGetByPhotoId(material.getPhotoId());
|
|
|
+ if (!Check.isNull(videoGetvo)) {
|
|
|
+ material.setChannelType(videoGetvo.getChannelType());
|
|
|
+ material.setSignature(videoGetvo.getSignature());
|
|
|
+ }
|
|
|
material.setAccountId(accountId);
|
|
|
- photoIdList.add(material.getPhotoId());
|
|
|
+ // photoIdList.add(material.getPhotoId());
|
|
|
addList.add(material);
|
|
|
}
|
|
|
- addList = this.getVideoInfoByList(addList, photoIdList);
|
|
|
+ // addList = this.getVideoInfoByList(addList, photoIdList);
|
|
|
dailyMaterialMapper.batchReplace(addList);
|
|
|
getMaterialReportByAccountIdAndStatDate(accountId, token, startDate, endDate, page + 1);
|
|
|
}
|
|
|
|
|
|
private List<KuaiShouReportDailyMaterial> getVideoInfoByList(List<KuaiShouReportDailyMaterial> addList, List<Long> photoIdList) {
|
|
|
+ if (Check.isNull(photoIdList)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
List<JSONObject> videoInfoList = dailyMaterialMapper.getVideoInfoByList(photoIdList);
|
|
|
Map<Long, JSONObject> videoMap = new HashMap<>();
|
|
|
for (int i = 0; i < videoInfoList.size(); i++) {
|