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
b3f364f2
Commit
b3f364f2
authored
Dec 15, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/alarm_order_store'
parents
ecc7108c
5747a2d5
Pipeline
#187
failed with stage
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
AlarmOrderController.php
app/Http/Controllers/AlarmOrderController.php
+5
-1
No files found.
app/Http/Controllers/AlarmOrderController.php
View file @
b3f364f2
...
@@ -27,11 +27,13 @@ class AlarmOrderController extends Controller
...
@@ -27,11 +27,13 @@ class AlarmOrderController extends Controller
alarm_order.*,
alarm_order.*,
r.devicenumber, r.concentration, r.location, r.policestatus, r.shutoff_status,
r.devicenumber, r.concentration, r.location, r.policestatus, r.shutoff_status,
d.devicecoord, d.username,
d.devicecoord, d.username,
u.name, u.phone_number
u.name, u.phone_number,
s.status_name
'
)
'
)
->
leftjoin
(
'reportpolice AS r'
,
'r.id'
,
'='
,
'alarm_order.reportpolice_id'
)
->
leftjoin
(
'reportpolice AS r'
,
'r.id'
,
'='
,
'alarm_order.reportpolice_id'
)
->
leftjoin
(
'device AS d'
,
'd.id'
,
'='
,
'alarm_order.device_id'
)
->
leftjoin
(
'device AS d'
,
'd.id'
,
'='
,
'alarm_order.device_id'
)
->
leftjoin
(
'users AS u'
,
'alarm_order.user_id'
,
'='
,
'u.id'
)
->
leftjoin
(
'users AS u'
,
'alarm_order.user_id'
,
'='
,
'u.id'
)
->
leftjoin
(
'status AS s'
,
's.id'
,
'='
,
'alarm_order.reportpolice_id'
)
->
offset
(
$offset
)
->
offset
(
$offset
)
->
limit
(
$limit
)
->
limit
(
$limit
)
->
get
()
->
toArray
();
->
get
()
->
toArray
();
...
@@ -62,6 +64,8 @@ class AlarmOrderController extends Controller
...
@@ -62,6 +64,8 @@ class AlarmOrderController extends Controller
$order
=
new
AlarmOrder
();
$order
=
new
AlarmOrder
();
$insertId
=
$order
->
insertGetId
([
$insertId
=
$order
->
insertGetId
([
'order_num'
=>
$orderNum
,
'order_num'
=>
$orderNum
,
'device_id'
=>
$request
->
input
(
'device_id'
),
'user_id'
=>
$request
->
input
(
'user_id'
),
'reportpolice_id'
=>
$reportpolice_id
,
'reportpolice_id'
=>
$reportpolice_id
,
'created_at'
=>
Carbon
::
now
(),
'created_at'
=>
Carbon
::
now
(),
]);
]);
...
...
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