作者 gpj-dev

预约飞行列表排序问题修改

... ... @@ -68,7 +68,7 @@ class Sun extends Backend
->with(['time', 'user', 'plane'])
->where($map)
->where($where)
->order($sort, $order)
->order('sun.createtime desc,plane.base_id,plane.id,time.id desc')
->paginate($limit);
foreach ($list as $row) {
... ...
... ... @@ -60,6 +60,6 @@ class Sun extends Model
public function plane()
{
return $this->belongsTo('Plane', 'plane_id', 'id', [], 'LEFT')->setEagerlyType(0);
return $this->belongsTo('Plane', 'plane_id', 'id', [], 'INNER')->setEagerlyType(0);
}
}
... ...