From b338cbc34c84c1a86f0dfdbe134b2aac326b418f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 May 2023 10:46:31 +0800 Subject: [PATCH] =?UTF-8?q?refector:=20=E5=A6=82=E6=9E=9C=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E6=97=B6=E9=97=B4=E4=B8=8D=E6=A3=80=E6=9F=A5=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E6=9C=AA=E5=B0=B1=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ecm/service.py b/apps/ecm/service.py index d875b5b1..143f9477 100644 --- a/apps/ecm/service.py +++ b/apps/ecm/service.py @@ -235,6 +235,9 @@ def create_remind(event: Event, params: dict): def check_not_in_place(opl: Opl): # 检查作业人员未就位事件(直接创建事件) + end_time = opl.end_time + if timezone.now() >= end_time: # 如果大于预计结束时间不做检查了 + return area = opl.operation.area if 'xx_rail' in area.third_info: railId = area.third_info['xx_rail']['id']