展示职位列表调整
parent
3408ccb752
commit
44d4b6907f
|
@ -28,7 +28,7 @@ class PositionModel extends Base
|
||||||
->when($onlyVisible, function($query){
|
->when($onlyVisible, function($query){
|
||||||
$query->where('visible', 1);
|
$query->where('visible', 1);
|
||||||
})
|
})
|
||||||
->order('sort', 'asc')
|
->order('sort', 'desc')
|
||||||
->limit($pre)
|
->limit($pre)
|
||||||
->select();
|
->select();
|
||||||
return $items->toArray();
|
return $items->toArray();
|
||||||
|
|
Loading…
Reference in New Issue