Explorar el Código

‘增加环比’

zhl hace 3 años
padre
commit
a634366e8f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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,