Browse Source

fix(KuaiShouDramaService): 修复新增报告数据时空剧集ID导致的问题

- 新增报告数据时过滤掉 episodeId 为空的记录
- 避免因空 episodeId 导致的数据异常或错误
hpk 8 months ago
parent
commit
9f7b226ea4

+ 3 - 1
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/service/impl/KuaiShouDramaServiceImpl.java

@@ -623,7 +623,9 @@ public class KuaiShouDramaServiceImpl implements IKuaiShouDramaService {
                 report.setPayPanelShowCnt(detailJson.getInteger("pay_panel_show_cnt"));
                 report.setPayPanelClickCnt(detailJson.getInteger("pay_panel_click_cnt"));
                 report.setPayAmt(detailJson.getDouble("pay_amt"));
-                addList.add(report);
+                if (report.getEpisodeId() != null) {
+                    addList.add(report);
+                }
             }
         }
         if (!Check.isNull(addList)) {