yumeng 1 tahun lalu
induk
melakukan
9db341ad52

+ 3 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/DuanJUReportMapper.xml

@@ -117,9 +117,10 @@
         FROM media_api.compass_bind_kuaishou_material_video_report_daily t1
         left join media_api.compass_bind_kuaishou_video_list t2 on t1.photo_id = t2.photo_id
         WHERE t1.stat_date >= #{start}
-        AND t1.stat_date <= #{end}) t
+        AND t1.stat_date <= #{end}
+        and t1.charge > 0
+        ) t
         where 1 = 1
-        and sum(t.charge) > 0
         <if test="videoName!=null and videoName!=''">and t.photo_name like concat('%',#{videoName},'%')</if>
         group by t.photo_id
         ORDER BY sum(t.charge) DESC