|
|
@@ -21,14 +21,14 @@ class TennisLeague extends BaseModel {
|
|
|
if (is_array ($where) && count ($where) > 0){
|
|
|
$data = $this
|
|
|
//->join('st_wq_local_league','st_wq_league.id','=','st_wq_local_league.lg_id')
|
|
|
- ->select('st_wq_league.id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
|
|
|
+ ->select('st_wq_league.lg_id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
|
|
|
->orderby('st_wq_league.utime','desc')
|
|
|
->where($where)
|
|
|
->paginate ($list);
|
|
|
}else{
|
|
|
$data = $this
|
|
|
//->join('st_wq_local_league','st_wq_league.id','=','st_wq_local_league.lg_id')
|
|
|
- ->select('st_wq_league.id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
|
|
|
+ ->select('st_wq_league.lg_id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
|
|
|
->orderby('st_wq_league.utime','desc')
|
|
|
->orderby('utime','desc')
|
|
|
->paginate ($list);
|