feat: shutdown_or_startup 如果不是工段不用关心其开停

This commit is contained in:
caoqianming 2024-05-02 00:25:37 +08:00
parent 634884f336
commit ca15092c5c
1 changed files with 3 additions and 0 deletions

View File

@ -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