Commit c5922fb0 authored by Administrator's avatar Administrator

更新报警记录API

parent 0553af02
......@@ -400,6 +400,7 @@ class DevicesController extends Controller
->join('status as s', 'r.policestatus', '=', 's.id')
->join('device as d', 'r.devicenumber', '=', 'd.devicenum')
->select('r.*', 's.status_name', 'd.id as deid')
->orderByDesc('r.starttime')
->get();
} else {
$data = DB::table('reportpolice as r')
......@@ -407,6 +408,7 @@ class DevicesController extends Controller
->join('device as d', 'r.devicenumber', '=', 'd.devicenum')
->where('d.uid', '=', Auth::id())
->select('r.*', 's.status_name', 'd.id as deid')
->orderByDesc('r.starttime')
->get();
}
return $this->jsonSuccessData($data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment