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 = {