优化 campaign adset ad列表的数据排序 3
This commit is contained in:
parent
5438937ca4
commit
be584f926a
@ -220,7 +220,7 @@ class AdsInsightService
|
||||
$query->where('c.platform_type', '=', $platformType);
|
||||
}
|
||||
});
|
||||
$query->order('c.platform_type, c.status', 'asc');
|
||||
$query->order('c.platform_type,c.account_id,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');
|
||||
$query->order('s.platform_type, s.account_id, 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');
|
||||
$query->order('a.platform_type, a.account_id, a.status', 'asc');
|
||||
// 获取所有符合条件的数据(不分页)
|
||||
$allAds = $query->select()->toArray();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user