1.修改冬休周期,14天的要变成30而不是28

This commit is contained in:
whm
2025-12-15 10:58:23 +08:00
parent 5b24a9f07a
commit 7d6881cf87

View File

@@ -175,9 +175,11 @@ class ConstructionMonitorUtils:
# 核心修改:冬休回溯场景下调整测量间隔(基准周期)
original_period = self.compatible_periods[base_condition]
if is_winter_break:
# 规则1原周期为3天则改为7天规则2其他周期直接翻倍
# 规则1原周期为3天则改为7天规则2原周期为14天则改为30天规则3其他周期直接翻倍
if original_period == 3:
adjusted_period = 7
elif original_period == 14:
adjusted_period = 30
else:
adjusted_period = original_period * 2
else: