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
de616d38
Commit
de616d38
authored
Jun 04, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a2b2c10b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
.DS_Store
application/api_broker/controller/.DS_Store
+0
-0
OfficeService.php
application/index/service/OfficeService.php
+25
-0
No files found.
application/api_broker/controller/.DS_Store
0 → 100644
View file @
de616d38
File added
application/index/service/OfficeService.php
View file @
de616d38
...
...
@@ -348,10 +348,35 @@ class OfficeService
//最大最小面积
$result
[
'area_max'
]
=
$this
->
getAreaMaxOrMin
(
$id
,
'max'
);
$result
[
'area_min'
]
=
$this
->
getAreaMaxOrMin
(
$id
,
'min'
);
//标签
$result
[
'building_sign'
]
=
$this
->
getBuildingSign
(
$id
);
return
[
'status'
=>
200
,
'msg'
=>
'success'
,
'data'
=>
$result
];
}
/**
* 标签
* @param $id
* @return string
*/
private
function
getBuildingSign
(
$id
){
$m_office_room
=
new
OfficeGRoom
();
$field
=
'shop_sign'
;
$where
[
'building_id'
]
=
$id
;
$where
[
'status'
]
=
1
;
$res
=
$m_office_room
->
getRoom
(
$field
,
$where
);
if
(
!
$res
)
return
''
;
$shop_sign_old
=
''
;
foreach
(
$res
as
$k
=>
$v
)
{
$shop_sign_old
.=
','
.
$v
[
'shop_sign'
];
}
$ex_shop_sign_old
=
explode
(
','
,
trim
(
$shop_sign_old
,
","
));
$ex_shop_sign_old
=
array_unique
(
$ex_shop_sign_old
);
//数组去重
$shop_sign
=
implode
(
","
,
$ex_shop_sign_old
);
return
$shop_sign
;
}
/**
* 最大最小面积
* @param $id
...
...
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