From ca15092c5cfdfe0a3e8f477532992a6752e7f81b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 2 May 2024 00:25:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20shutdown=5For=5Fstartup=20=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E4=B8=8D=E6=98=AF=E5=B7=A5=E6=AE=B5=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E5=85=B3=E5=BF=83=E5=85=B6=E5=BC=80=E5=81=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/em/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/em/services.py b/apps/em/services.py index 00a09e58..d226a81d 100644 --- a/apps/em/services.py +++ b/apps/em/services.py @@ -46,6 +46,9 @@ def shutdown_or_startup(equipId: str, last_timex: datetime, last_mrs): # 设备运行状态决定工段运行状态 mgroup: Mgroup = equip.mgroup + # 如果不是工段不用关心其开停 + if mgroup.cate != 'section': + return indicate = equip.indicate_mgroup_running new_run = None