fix: 完成商务迁移复核与接口优化并清理历史资料
This commit is contained in:
@@ -115,7 +115,19 @@ func TestRankingHTTP(t *testing.T) {
|
||||
}
|
||||
}
|
||||
if lx == nil || lx["metricValue"] != "50.00" || lx["momValue"] != "-50.00" || lx["momStatus"] != float64(-1) {
|
||||
t.Fatalf("付费率应计算百分点差: %+v", lx)
|
||||
t.Fatalf("付费率应计算相对上期增幅: %+v", lx)
|
||||
}
|
||||
for _, identity := range []string{"B", "C", "D"} {
|
||||
if err := db.Exec("INSERT INTO tab_sw_report_day_key VALUES('lx',100,1,1,'2026-11-03',2,?)", identity).Error; err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
p = call(7, "channel", query, 0)
|
||||
for _, value := range p["payRateRankList"].([]any) {
|
||||
row := value.(map[string]any)
|
||||
if row["sourceDb"] == "lx" && (row["metricValue"] != "50.00" || row["momValue"] != "100.00" || row["momStatus"] != float64(1)) {
|
||||
t.Fatalf("25%% 升到 50%% 应为 +100%% 环比: %+v", row)
|
||||
}
|
||||
}
|
||||
p = call(7, "business", query, 0)
|
||||
rows := p["registerRankList"].([]any)
|
||||
|
||||
Reference in New Issue
Block a user