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

上一篇:JavaWeb18(JSP标签、JSTL标签、EL表达式 )


下一篇:面向对象6