// 组装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