From 499e5732aa136b2860f6d46e668f638494e349ad Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 24 Jun 2024 10:02:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=89=80=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E8=AE=BE=E5=A4=87=E6=B5=8B=E7=82=B9=E7=9A=84total=5Fp?= =?UTF-8?q?roduction=E5=BF=BD=E7=95=A5=E5=BF=85=E9=A1=BB=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index cdec7fc8..9f051751 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -492,7 +492,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, elec_consume_unit = F("val") / total_production MpointStat.objects.filter( mgroup=enstat.mgroup, mpoint__material__code="elec", type=enstat.type, year_s=enstat.year_s, month_s=enstat.month_s, day_s=enstat.day_s, hour=enstat.hour - ).exclude(mpoint__ep_monitored=None).update(total_production=total_production, elec_consume_unit=elec_consume_unit) + ).update(total_production=total_production, elec_consume_unit=elec_consume_unit) # 更新余热发电的production_elec_unit if mgroup.name == "回转窑": if enstat.total_production == 0: