|
@@ -6,7 +6,6 @@ import cn.com.ctop.kuaishou.modules.batch.entity.vo.KuaiShouVideoGetVo;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouReportDailyMaterialMapper;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouReportDailyMaterialService;
|
|
|
import cn.com.ctop.kuaishou.modules.report.entity.KuaiShouReportDailyMaterial;
|
|
|
-import cn.com.ctop.kuaishou.modules.report.entity.VideoGetvo;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -72,7 +71,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 +79,16 @@ 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());
|
|
|
+ /* 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);
|
|
|
}
|