feat: 5G 指标和 4G、5G 的 MR 改从即席查询取实际数据,评估不再用模拟指标
- 5G 流量、RRC、利用率、扇区取 5G 小区容量周表,接通率和掉线率取 5GSA_CU 的周粒度,MR 取 5GMRO 的周粒度 - 4G 的 MR 采样、覆盖率、竞对和三个是否取 MR 月表:停闭前用拆除日上一个月,停闭后用当月 - 周边站的 MR 弱覆盖填弱于 -110dBm 的比例(100 减平台的占比),和模板阈值一致 - 多粒度的表在请求里带上选中的时间粒度和地理维度 - 判断公式逐项检查停闭后有没有数值,缺了显示「/」;4G 的 MR 月数据没出时汇总行的 MR 一项不判断 - 扇区成员把 5G 小区也算进来
This commit is contained in:
@@ -205,7 +205,7 @@ def finalize_job(job_id: int) -> None:
|
||||
|
||||
|
||||
def _write_results(job_id: int, title: str, entries: list[dict]) -> tuple[list[dict], list[str]]:
|
||||
warnings: list[str] = [mock_notice()]
|
||||
warnings: list[str] = [notice for notice in (mock_notice(),) if notice]
|
||||
for entry in entries:
|
||||
site = entry["payload"].get("site") or entry["key"]
|
||||
if entry["status"] == "failed":
|
||||
@@ -244,7 +244,7 @@ def _write_results(job_id: int, title: str, entries: list[dict]) -> tuple[list[d
|
||||
for row in rows
|
||||
)
|
||||
if done:
|
||||
groups.append(NeighborGroup(site=payload.get("site") or entry["key"], cells=payload.get("item2", [])))
|
||||
groups.append(NeighborGroup(site=payload.get("site") or entry["key"], cells=payload.get("item2", []), mr_pending=bool(payload.get("mrPending"))))
|
||||
section1.extend(payload.get("section1", []))
|
||||
sectors.extend(payload.get("sectors", []))
|
||||
content = write_pinduan(item1, groups) if kind == "pinduan" else write_dixiao(item1, section1, sectors, groups)
|
||||
|
||||
Reference in New Issue
Block a user