|
@@ -41,14 +41,14 @@ class AuctionBooking extends BaseModel
|
|
|
if (trim($where['store_name']) != '') $model->where('a.id|u.account|u.nickname', 'like', '%'.$where['store_name'].'%');
|
|
|
if (trim($where['auction_id']) != '') $model->where('a.auction_id', $where['auction_id']);
|
|
|
if (trim($where['data']) != '') $model = self::getModelTime($where, $model, 'create_time');
|
|
|
-
|
|
|
+ $data['count'] = $model->count();
|
|
|
if ($where['page'] && $where['limit']){
|
|
|
$model->page($where['page'], $where['limit']);
|
|
|
}else{
|
|
|
$model->page(20, 1);
|
|
|
}
|
|
|
|
|
|
- $data['count'] = $model->count();
|
|
|
+
|
|
|
$list = $model->select();
|
|
|
|
|
|
$data['data'] = $list;
|