...
|
...
|
@@ -86,8 +86,9 @@ class CardController extends RestBaseController |
|
|
$condition = $condition == '' ? '' : $condition;
|
|
|
$condition2['c.id'] = ['in',$ids];
|
|
|
if($data['keyword']) {
|
|
|
$ids = implode(",", $ids);
|
|
|
$where = "`c`.`is_recommend` = 1 AND ( `c`.`name` LIKE '%".$data['keyword']."%' OR `company` LIKE '%".$data['keyword']."%' OR `tel` LIKE '%".$data['keyword']."%' )
|
|
|
OR ( (`c`.`name` LIKE '%".$data['keyword']."%' OR `company` LIKE '%".$data['keyword']."%' OR `tel` LIKE '%".$data['keyword']."%') and `c`.`id` IN (12))";
|
|
|
OR ( (`c`.`name` LIKE '%".$data['keyword']."%' OR `company` LIKE '%".$data['keyword']."%' OR `tel` LIKE '%".$data['keyword']."%') and `c`.`id` IN (".$ids."))";
|
|
|
$result = Db::name('card')
|
|
|
->alias('c')
|
|
|
->join('user u','c.user_id=u.id','left')
|
...
|
...
|
|