Ver Fonte

‘增加环比’

zhl há 3 anos atrás
pai
commit
a634366e8f
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Apietl/kwai_etl/Q4Task/AppKuaishouAccountReportBusi.py

+ 2 - 2
Apietl/kwai_etl/Q4Task/AppKuaishouAccountReportBusi.py

@@ -40,8 +40,8 @@ bei.user_id,
 bei.leader_id,
 bei.org_code,
 report.charge,
-ratio.charge last_charge,
-round((report.charge-ratio.charge)/ratio.charge*100,3) charge_ratio,
+ifnull(ratio.charge,0) last_charge,
+ifnull(round((report.charge-ratio.charge)/ratio.charge*100,3),0) charge_ratio,
 report.`show`,
 report.photo_click,
 report.aclick,