Commit 7ea606e1 authored by 崔伟峰's avatar 崔伟峰

Merge branch 'fix_mengweifu_0816' into 'master'

fixed:take_place sort bug

See merge request bp/goods!7
parents b80360db dbf19fd0
...@@ -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