feat: 数据治理 — 入库约束+元数据卡片+编码清洗+审计看板

This commit is contained in:
Hermes CI Fix
2026-07-22 12:06:52 +08:00
parent ec6af751a5
commit 748c2da43f
8 changed files with 452 additions and 2 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ def run_all_alert_checks(db: Session = Depends(get_db)):
value = latest_value.actual_value
period = latest_value.period
params = rule.params or {}
import json; params = json.loads(rule.params) if isinstance(rule.params, str) else (rule.params or {})
alert_level = None
alert_message = None
@@ -534,7 +534,7 @@ def _check_forecast_alerts(db: Session) -> int:
continue
# 检查预测值是否超限
params = rule.params or {}
import json; params = json.loads(rule.params) if isinstance(rule.params, str) else (rule.params or {})
params["kpi"] = kpi
for forecast in latest_forecasts:
value = forecast.predicted_cash