...
|
...
|
@@ -93,7 +93,7 @@ ORDER BY top desc,c.create_time desc"; |
|
|
$result = Db::name('card')
|
|
|
->alias('c')
|
|
|
->join('user u','c.user_id=u.id','left')
|
|
|
->where()
|
|
|
->where($where)
|
|
|
->field('c.id,c.name,c.position,c.tel,c.home_tel,c.email,c.company,u.avatar,IF(c.user_id='.$this->userId.',c.user_id,0) top')
|
|
|
->order('top desc,c.create_time desc')
|
|
|
->paginate($per_page);
|
...
|
...
|
|