其他分享
首页 > 其他分享> > TP5 where查询一个字段不等于多个值

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

作者:互联网

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

作者主页 https://www.bz80.com

标签:people,type,字段,break,TP5,业务员,where,wheres,neq
来源: https://www.cnblogs.com/dongxiaobao/p/15161160.html