From b80bece1237cdd96d1143cafa1aa7a54381691fd Mon Sep 17 00:00:00 2001 From: whm <973418690@qq.com> Date: Sun, 23 Nov 2025 14:18:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B7=A5=E5=86=B5=E6=8E=A8=E7=90=86=E9=A2=9D?= =?UTF-8?q?=E5=A4=96=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=B7=A5=E5=86=B5=202.?= =?UTF-8?q?=E4=B8=8D=E5=A4=84=E7=90=86=E7=BC=BA=E5=B0=91=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E5=A4=A9=E6=95=B0=E5=AD=97=E6=AE=B5=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/construction_monitor.py | 2 ++ app/utils/scheduler.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/utils/construction_monitor.py b/app/utils/construction_monitor.py index 8ffeaa9..a7a5592 100644 --- a/app/utils/construction_monitor.py +++ b/app/utils/construction_monitor.py @@ -44,6 +44,8 @@ class ConstructionMonitorUtils: "轨道板(道床)铺设后,第2至3个月": 30, "轨道板(道床)铺设后,3个月以后": 90, "架桥机(运梁车) 首次通过后": 7, + "架桥机(运梁车) 首次通过前":1, + } # 构建中英文括号+逗号兼容映射表 self.compatible_periods = self._build_compatible_brackets_map() diff --git a/app/utils/scheduler.py b/app/utils/scheduler.py index 55dcd01..fffcaba 100644 --- a/app/utils/scheduler.py +++ b/app/utils/scheduler.py @@ -301,7 +301,7 @@ def scheduled_get_max_nyid_by_point_id(start: int = 0,end: int = 0): nyids = [] for d in data: # 过滤无效数据(避免缺失关键字段报错) - if all(key in d for key in ['NYID', 'point_id']) and d.get('level_data') and d.get('account_data') and d.get('section_data'): + if all(key in d for key in ['NYID', 'point_id','remaining']) and d.get('level_data') and d.get('account_data') and d.get('section_data'): if d['NYID'] in nyids: continue tem = {