@@ -173,6 +212,27 @@ class AlarmOrderController extends Controller
...
@@ -173,6 +212,27 @@ class AlarmOrderController extends Controller
return$this->jsonErrorData(500,'删除工单失败!');
return$this->jsonErrorData(500,'删除工单失败!');
}
}
}
}
/**
* 获取派单用户
*/
publicfunctiongetUserInfo()
{
if($this->isadmin()){
$users=DB::table('users')
->select('users.id','users.name','users.username','users.phone_number','ur.name AS role_name','ap.area_name AS province','aa.area_name AS area','ac.area_name AS city')
->leftJoin('user_roles AS ur','ur.id','=','users.user_role_id')
->leftJoin('areachina AS ap','ap.areaid','=','users.provinceid')
->leftJoin('areachina AS aa','aa.areaid','=','users.areaid')
->leftJoin('areachina AS ac','ac.areaid','=','users.cityid')