hcst_sunzhen před 5 roky
rodič
revize
a9c527bce0

+ 1 - 1
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/mapper/xml/ByteDanceVideoReportDailyMapper.xml

@@ -682,7 +682,7 @@
         from ctop_bytedance_report_material_daily a
         left join (select * from ctop_user_allocation group by account_id) b on a.account_id = b.account_id
         left join user_company c on b.user_id = c.user_id
-        left join ctop_bytedance_video_info d on a.material_id = d.material_id
+        left join (select * from ctop_bytedance_video_info group by material_id) d on a.material_id = d.material_id
         left join (select code,url,material_name from ctop_material_info group by code) e on d.signature = e.code
         where c.company_id = #{companyId}      -- '6608ed13c0dd42de93c790dbdf124234'
         and a.image_mode in ('CREATIVE_IMAGE_MODE_VIDEO',