Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯超鹏
laravelzh
Commits
c5922fb0
Commit
c5922fb0
authored
Dec 21, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新报警记录API
parent
0553af02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
DevicesController.php
app/Http/Controllers/DevicesController.php
+2
-0
No files found.
app/Http/Controllers/DevicesController.php
View file @
c5922fb0
...
@@ -400,6 +400,7 @@ class DevicesController extends Controller
...
@@ -400,6 +400,7 @@ class DevicesController extends Controller
->
join
(
'status as s'
,
'r.policestatus'
,
'='
,
's.id'
)
->
join
(
'status as s'
,
'r.policestatus'
,
'='
,
's.id'
)
->
join
(
'device as d'
,
'r.devicenumber'
,
'='
,
'd.devicenum'
)
->
join
(
'device as d'
,
'r.devicenumber'
,
'='
,
'd.devicenum'
)
->
select
(
'r.*'
,
's.status_name'
,
'd.id as deid'
)
->
select
(
'r.*'
,
's.status_name'
,
'd.id as deid'
)
->
orderByDesc
(
'r.starttime'
)
->
get
();
->
get
();
}
else
{
}
else
{
$data
=
DB
::
table
(
'reportpolice as r'
)
$data
=
DB
::
table
(
'reportpolice as r'
)
...
@@ -407,6 +408,7 @@ class DevicesController extends Controller
...
@@ -407,6 +408,7 @@ class DevicesController extends Controller
->
join
(
'device as d'
,
'r.devicenumber'
,
'='
,
'd.devicenum'
)
->
join
(
'device as d'
,
'r.devicenumber'
,
'='
,
'd.devicenum'
)
->
where
(
'd.uid'
,
'='
,
Auth
::
id
())
->
where
(
'd.uid'
,
'='
,
Auth
::
id
())
->
select
(
'r.*'
,
's.status_name'
,
'd.id as deid'
)
->
select
(
'r.*'
,
's.status_name'
,
'd.id as deid'
)
->
orderByDesc
(
'r.starttime'
)
->
get
();
->
get
();
}
}
return
$this
->
jsonSuccessData
(
$data
);
return
$this
->
jsonSuccessData
(
$data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment