fix: 标煤耗计算修改3

This commit is contained in:
caoqianming 2024-05-10 15:51:13 +08:00
parent 489d4bb6e5
commit 20e9ac451a
1 changed files with 2 additions and 2 deletions

View File

@ -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