From 20e9ac451ab316e98624997af80e3f156d8c6134 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 10 May 2024 15:51:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E7=85=A4=E8=80=97=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E4=BF=AE=E6=94=B93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 9f4e552a..37acd495 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -493,7 +493,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, # 算单位产品标煤耗 try: - enstat.coal_consume_unit = enstat.pcoal_coal_consume * 100 / enstat.total_production + enstat.coal_consume_unit = enstat.pcoal_coal_consume * 1000 / enstat.total_production except ZeroDivisionError: enstat.coal_consume_unit = 0 @@ -685,7 +685,7 @@ def cal_enstat_pcoal_change(enstat: EnStat, new_pcoal_heat): enstat.pcoal_coal_consume = 0 # 算单位产品标煤耗 try: - enstat.coal_consume_unit = enstat.pcoal_coal_consume * 100 / enstat.total_production + enstat.coal_consume_unit = enstat.pcoal_coal_consume * 1000 / enstat.total_production except ZeroDivisionError: enstat.coal_consume_unit = 0