fix: align business reports and record task migration progress
This commit is contained in:
@@ -172,6 +172,14 @@ func TestChannelAndGameAnalyticsHTTP(t *testing.T) {
|
||||
if data["total"] != float64(1) || data["totalPayAmount"] != "30.00" {
|
||||
t.Fatal("模糊命中子渠道后应统计可见的同树数据")
|
||||
}
|
||||
data = call(7, "channelData", "sourceDb=lx&hasRegister=false&hasPay=true&pageSize=1", 0)
|
||||
if data["total"] != float64(0) || data["totalPayAmount"] != "0.00" {
|
||||
t.Fatalf("指标过滤未传递或合计仍包含筛选外数据: %+v", data)
|
||||
}
|
||||
data = call(7, "channelData", "sourceDb=lx&hasRegister=true&hasPay=true&pageSize=1&pageNum=2", 0)
|
||||
if data["total"] != float64(2) || len(data["rows"].([]any)) != 1 || data["totalPayAmount"] != "60.00" {
|
||||
t.Fatalf("筛选后的全量合计不能随翻页变化: %+v", data)
|
||||
}
|
||||
if err := db.Exec("INSERT INTO sys_user_preference(user_id,include_sub_promote,idcard_dedup) VALUES(7,1,0)").Error; err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user