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
33f5c62e
Commit
33f5c62e
authored
Jun 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
building_images
parent
2c6e47f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
OfficeService.php
application/index/service/OfficeService.php
+34
-1
No files found.
application/index/service/OfficeService.php
View file @
33f5c62e
...
...
@@ -242,7 +242,7 @@ class OfficeService
$where
[
'disc'
]
=
$params
[
'disc'
];
}
if
(
isset
(
$params
[
'
`business_district_id`
'
]))
{
if
(
isset
(
$params
[
'
business_district_id
'
]))
{
$where
[
'business_district_id'
]
=
$params
[
'business_district_id'
];
}
...
...
@@ -279,6 +279,7 @@ class OfficeService
}
}
$data
[
$k
][
'traffic'
]
=
$traffic_arr
;
$data
[
'building_images'
]
=
$this
->
m_office_img
->
getListAll
(
'id,img_name'
,
[
'house_id'
=>
$v
[
'id'
]]);
}
$result
[
'data'
]
=
$data
;
$result
[
'status'
]
=
'successful'
;
...
...
@@ -453,4 +454,35 @@ class OfficeService
$res
=
$m_office_room
->
getRoomNum
(
$params
);
return
$res
;
}
public
function
getBuilding
(
$params
)
{
if
(
isset
(
$params
[
'title'
]))
{
$where
[
'title'
]
=
[
'LIKE'
,
'%'
.
$params
[
'title'
]
.
'%'
];
}
if
(
isset
(
$params
[
'disc'
]))
{
$where
[
'disc'
]
=
$params
[
'disc'
];
}
if
(
isset
(
$params
[
'`business_district_id`'
]))
{
$where
[
'business_district_id'
]
=
$params
[
'business_district_id'
];
}
if
(
isset
(
$params
[
'type'
]))
{
$where
[
'type'
]
=
$params
[
'type'
];
}
if
(
isset
(
$params
[
'id'
]))
{
$where
[
'id'
]
=
$params
[
'id'
];
}
if
(
isset
(
$params
[
'city'
]))
{
$where
[
'city'
]
=
$params
[
'city'
];
}
$field
=
'id,title,address,type,floor_total,business_district_id,intro'
;
$data
=
$this
->
m_office
->
getList
(
$page_size
,
$page_no
,
''
,
$field
,
$where
);
}
}
\ No newline at end of file
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