TP5 where查询一个字段不等于多个值

- 上代码

// 组装where条件
$wheres = [];
// 后台人员类型
$people = input('people','');
switch($people){
    case "跟单员":
        $wheres['order_type'] = ['neq', '等待业务员审核'];
        break;
    case "商务":
        $wheres['order_type'] = [['neq', '等待业务员审核'],['neq', '业务员已接单'],['neq', '业务员已驳回']];
        break;
}

你可能感兴趣的:(php,TP5,php)