...
|
...
|
@@ -82,12 +82,12 @@ class CardController extends RestBaseController |
|
|
}
|
|
|
}
|
|
|
$condition = $condition == '' ? '1=1' : $condition;
|
|
|
$condition2['c.id'] = ['in',$ids];
|
|
|
$condition['c.id'] = ['in',$ids];
|
|
|
$result = Db::name('card')
|
|
|
->alias('c')
|
|
|
->join('user u','c.user_id=u.id','left')
|
|
|
->where($condition)
|
|
|
->whereOr($condition2)
|
|
|
//->whereOr($condition2)
|
|
|
->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);
|
...
|
...
|
|