order by FIELD(AuditorStatus,3,0,1,2)
laravel 写法
$data = $query->orderByRaw(\DB::Raw('FIELD(AuditorStatus,3,0,1,2)'))->get()->toArray();
order by FIELD(AuditorStatus,3,0,1,2)
laravel 写法
$data = $query->orderByRaw(\DB::Raw('FIELD(AuditorStatus,3,0,1,2)'))->get()->toArray();
转载于:https://www.cnblogs.com/blog-dyn/p/10209613.html