Jelajahi Sumber

‘修改null值’

zhl 3 tahun lalu
induk
melakukan
983a907fb9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Apietl/kwai_etl/report/MateirialVideoDailyReport.py

+ 1 - 1
Apietl/kwai_etl/report/MateirialVideoDailyReport.py

@@ -276,7 +276,7 @@ select report.advertiser_id
 from media_api.kuaishou_material_video_report_daily report
          left join media_api.kuaishou_video_list video
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id
-         left join `jeecg-boot`.ctop_material_info cmi on video.signature = cmi.code
+         left join (select  code,material_name from `jeecg-boot`.ctop_material_info where status=1) cmi on video.signature = cmi.code
          left join `jeecg-boot`.ctop_material_ascription cma on cma.material_id = video.signature
          left join `jeecg-boot`.ctop_user_allocation cua on cua.account_id = video.account_id
          left join `jeecg-boot`.ctop_project cp on cua.project_id = cp.id