优化 campaign adset ad列表的数据排序

This commit is contained in:
huangguancheng 2025-01-23 15:40:26 +08:00
parent ece22898b6
commit 5438937ca4

View File

@ -220,7 +220,7 @@ class AdsInsightService
$query->where('c.platform_type', '=', $platformType);
}
});
$query->order('c.platform_type, c.status', 'asc');
// 获取所有符合条件的数据(不分页)
$allCampaigns = $query->select()->toArray();
@ -922,7 +922,7 @@ class AdsInsightService
$query->where('s.platform_type', '=', $platformType);
}
});
$query->order('s.platform_type, s.status', 'asc');
// 获取所有符合条件的数据(不分页)
$allAdsets = $query->select()->toArray();
@ -1389,7 +1389,7 @@ class AdsInsightService
$query->where('a.platform_type', '=', $platformType);
}
});
$query->order('a.platform_type, a.status', 'asc');
// 获取所有符合条件的数据(不分页)
$allAds = $query->select()->toArray();