Commit dbf19fd0 authored by mengweifu's avatar mengweifu

fixed:take_place sort bug

parent b80360db
...@@ -145,7 +145,9 @@ class TakePlaceService ...@@ -145,7 +145,9 @@ class TakePlaceService
]; ];
} }
$where['ORDER'] = ['marketing_take_place_id' => 'DESC']; $where['ORDER'] = ['marketing_take_place_id' => 'DESC'];
$where['LIMIT'] = [$offset, $limit];
// 如果分页后排序,排序就会有问题,自提点数量有限也不用分页处理。
// $where['LIMIT'] = [$offset, $limit];
$relations = MarketingTakePlace::select('*', $where); $relations = MarketingTakePlace::select('*', $where);
if(empty($relations)) { if(empty($relations)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment