// 組裝where條件
$wheres = [];
// 后台用戶類型
$user = input('user','');
switch($user ){
case "部門員工":
$wheres['order_type'] = ['neq', '等待部門管理審核'];
break;
case "部門管理":
$wheres['order_type'] = [['neq', '等待部門管理審核'],['neq', '部門管理已處理'],['neq', '部門管理已駁回']];
break;