Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
d76b10bf
Commit
d76b10bf
authored
Jun 13, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del status
parent
946ce122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
OfficeService.php
application/index/service/OfficeService.php
+8
-0
No files found.
application/index/service/OfficeService.php
View file @
d76b10bf
...
...
@@ -75,7 +75,9 @@ class OfficeService
$building_station_id
=
$this
->
m_building_stations
->
getFindDataColumn
(
'stations_id'
,
[
'building_id'
=>
$id
]);
$first_position
=
$data
[
'latitude'
]
.
','
.
$data
[
'longitude'
];
$add_building_stations
=
json_decode
(
$data
[
'add_building_stations'
],
true
);
$stations_id
=
[];
foreach
(
$add_building_stations
as
$k
=>
$v
)
{
$stations_id
[]
=
$v
[
'stations_id'
];
if
(
empty
(
$v
[
'stations_id'
])
||
in_array
(
$v
[
'stations_id'
],
$building_station_id
))
{
continue
;
}
...
...
@@ -89,6 +91,12 @@ class OfficeService
}
}
foreach
(
$building_station_id
as
$k
=>
$v
)
{
if
(
!
in_array
(
$v
,
$stations_id
))
{
$this
->
m_building_stations
->
updateData
([
'is_del'
=>
1
],
[
'building_id'
=>
$id
,
'stations_id'
=>
$v
]);
}
}
if
(
isset
(
$save_stations
))
{
$this
->
m_building_stations
->
insertData
(
$save_stations
);
}
...
...
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