From 972b460a9fa69f2a597a36c33d29d6f47a75ba48 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 8 May 2024 16:34:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20cal=5Fmpointstat=E5=A2=9E=E5=8A=A0cal?= =?UTF-8?q?=5Fexp=5Fduration=5Fhour=20=E7=9A=84=E5=89=8D=E7=BD=AE=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index c1a480eb..9c1a5735 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -23,7 +23,7 @@ from apps.third.king.k import kingClient from apps.third.king.king_api import kapis from apps.enm.services import insert_mplogx_from_king_rest_chunk, MpointCache from django.utils.timezone import localtime -from apps.wpm.tasks import get_total_hour_now +from apps.wpm.tasks import get_total_hour_now, cal_exp_duration_hour myLogger = logging.getLogger("log") @@ -222,7 +222,8 @@ def cal_mpointstats(is_now=1, year=None, month=None, day=None, hour=None): cal_mpointstat_hour(item.id, year, month, day, hour) # 先调整一下班时间,以防计算错误 - get_total_hour_now() + get_total_hour_now() # 先处理total_hour_now + cal_exp_duration_hour() # 再处理shut_hour # 开始计算enstat mgroups = Mgroup.objects.filter(need_enm=True).order_by("sort")