diff --git a/apps/enm/services.py b/apps/enm/services.py index bb3be7ad..29e319be 100644 --- a/apps/enm/services.py +++ b/apps/enm/services.py @@ -466,7 +466,7 @@ def get_analyse_data_mgroups_duration(start_date: datetime, end_date: datetime) item["production_hour"] = round(item["total_production"] * 3600 / item["run_sec"], 2) if item["run_sec"] > 0 else 0 item["elec_consume_unit"] = round(item["elec_consume"] / item["total_production"], 2) if item["total_production"] > 0 else 0 item["run_hour"] = round(item["run_sec"] / 3600, 2) if item["run_sec"] > 0 else 0 - item["run_rate"] = round(item["run_sec"] * 100 / item["total_sec_now"], 4) if item["total_sec_now"] > 0 else 0 + item["run_rate"] = round(item["run_sec"] * 100 / item["total_sec_now"], 2) if item["total_sec_now"] > 0 else 0 item["coal_consume_unit"] = round(item["pcoal_coal_consume"] * 1000 / item["total_production"], 2) if item["total_production"] > 0 else 0 if item["mgroup_name"] == "回转窑": total_production_ylm = res_dict.get("原料磨", {}).get("total_production", 0) @@ -477,6 +477,6 @@ def get_analyse_data_mgroups_duration(start_date: datetime, end_date: datetime) item["en_consume_unit"] = 0 else: item["celec_consume_unit"] = round((elec_consume_mm + item["elec_consume"]) / item["total_production"] + get_sysconfig("enm.enm_lhxs") * elec_consume_ylm / total_production_ylm, 2) - item["en_consume_unit"] = item["coal_consume_unit"] + 0.1229 * item["elec_consume_unit"] + item["en_consume_unit"] = round(item["coal_consume_unit"] + 0.1229 * item["elec_consume_unit"], 2) item["total_production"] = round(item["total_production"], 2) return res \ No newline at end of file