fix: 标煤耗计算修改3
This commit is contained in:
parent
489d4bb6e5
commit
20e9ac451a
|
@ -493,7 +493,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s,
|
||||||
|
|
||||||
# 算单位产品标煤耗
|
# 算单位产品标煤耗
|
||||||
try:
|
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:
|
except ZeroDivisionError:
|
||||||
enstat.coal_consume_unit = 0
|
enstat.coal_consume_unit = 0
|
||||||
|
|
||||||
|
@ -685,7 +685,7 @@ def cal_enstat_pcoal_change(enstat: EnStat, new_pcoal_heat):
|
||||||
enstat.pcoal_coal_consume = 0
|
enstat.pcoal_coal_consume = 0
|
||||||
# 算单位产品标煤耗
|
# 算单位产品标煤耗
|
||||||
try:
|
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:
|
except ZeroDivisionError:
|
||||||
enstat.coal_consume_unit = 0
|
enstat.coal_consume_unit = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue