// 组装where条件
$wheres = [];
// 后台人员类型
$people = input('people','');
switch($people){
case "业务员":
$wheres['order_type'] = ['neq', '等待老大审核'];
break;
case "经历":
$wheres['order_type'] = [['neq', '等待老大审核'],['neq', '老大已接单'],['neq', '老大已驳回']];
break;
}
转载至 https://www.bang4.cn