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
66de0b5d
Commit
66de0b5d
authored
Jun 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
14968b8e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
21 deletions
+15
-21
OfficeRoom.php
application/api_broker/controller/OfficeRoom.php
+2
-1
officeBuilding.php
application/api_broker/controller/officeBuilding.php
+3
-2
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+8
-13
OfficeService.php
application/index/service/OfficeService.php
+2
-5
No files found.
application/api_broker/controller/OfficeRoom.php
View file @
66de0b5d
...
...
@@ -98,7 +98,8 @@ class OfficeRoom extends Basic
}
$broker_service
=
new
OfficeRoomService
();
$result
=
$broker_service
->
getOfficeRoomInfo
(
$params
);
$id
=
$params
[
'id'
];
$result
=
$broker_service
->
getOfficeRoomInfo
(
$id
);
return
$this
->
response
(
$result
[
'status'
],
$result
[
'msg'
],
$result
[
'data'
]);
}
...
...
application/api_broker/controller/officeBuilding.php
View file @
66de0b5d
...
...
@@ -55,8 +55,9 @@ class OfficeBuilding extends Basic
return
$this
->
response
(
"101"
,
$checkResult
);
}
$s_office
=
new
OfficeService
();;
$result
=
$s_office
->
getOfficeBuildingInfo
(
$params
);
$s_office
=
new
OfficeService
();
$id
=
$params
[
'id'
];
$result
=
$s_office
->
getOfficeBuildingInfo
(
$id
);
return
$this
->
response
(
$result
[
'status'
],
$result
[
'msg'
],
$result
[
'data'
]);
}
...
...
application/index/service/OfficeRoomService.php
View file @
66de0b5d
...
...
@@ -592,33 +592,28 @@ class OfficeRoomService
* 获取房源详情
* @return array
*/
public
function
getOfficeRoomInfo
(
$params
){
$conditions
=
[];
if
(
!
isset
(
$params
[
'id'
])
or
!
$params
[
'id'
])
return
[
'status'
=>
101
,
'msg'
=>
'房源ID不能为空'
];
$conditions
[
'a.id'
]
=
$params
[
"id"
];
public
function
getOfficeRoomInfo
(
$id
){
$field
=
'a.id,a.building_id,b.title,b.floor_total,a.price_total,a.price,a.station_start,b.type,a.station_end,a.area,a.floor,a.floor_tag,
a.is_register,a.age_limit_start,a.age_limit_end,a.rent_free,a.management_fee,a.slotting_fee,a.carport,a.enter_date,
a.is_partition,a.decoration,a.payment_month,a.deposit_month,a.source,a.create_time,a.operation_id,a.landlord_remark,
a.fee_rule,a.update_time,b.address'
;
$result
=
$this
->
m_office_room
->
getOfficeRoomInfo
(
$field
,
$conditions
);
$result
=
$this
->
m_office_room
->
getOfficeRoomInfo
(
$field
,
[
'a.id'
=>
$id
]
);
if
(
!
$result
)
{
return
[
'status'
=>
101
,
'msg'
=>
'此房源不存在'
];
}
#
轮播图
//
轮播图
$result
[
'carousel_image'
]
=
$this
->
getCarouselImage
(
$result
[
'id'
]);
#
上传人
//
上传人
$result
[
'upload_info'
]
=
$this
->
getUploadInfo
(
$result
[
'operation_id'
]);
#
独家方
//
独家方
$result
[
'exclusive_info'
]
=
$this
->
getExclusiveInfo
(
$result
[
'id'
]);
#
房东
//
房东
$result
[
'landlord_info'
]
=
$this
->
getLandlordInfo
(
$result
[
'id'
]);
#
房源数
//
房源数
$result
[
'room_num'
]
=
$this
->
getRoomNum
(
$result
[
'id'
],
$result
[
'id'
]);
#
交通信息
//
交通信息
$result
[
'traffic_info'
]
=
$this
->
getTrafficInfo
(
$result
[
'id'
]);
return
[
'status'
=>
200
,
'msg'
=>
'success'
,
'data'
=>
$result
];
...
...
application/index/service/OfficeService.php
View file @
66de0b5d
...
...
@@ -327,12 +327,9 @@ class OfficeService
* 办公楼详情
* @return array
*/
public
function
getOfficeBuildingInfo
(
$params
){
if
(
!
isset
(
$params
[
'id'
])
or
!
$params
[
'id'
])
return
[
'status'
=>
101
,
'msg'
=>
'办公楼ID不能为空'
];
public
function
getOfficeBuildingInfo
(
$id
){
$field
=
'id,title,type,floor_total,address,intro'
;
$result
=
$data
=
$this
->
m_office
->
getFindData
(
$field
,
[
'id'
=>
$
params
[
"id"
]
]);;
$result
=
$data
=
$this
->
m_office
->
getFindData
(
$field
,
[
'id'
=>
$
id
]);;
if
(
!
$result
)
{
return
[
'status'
=>
101
,
'msg'
=>
'此办公楼不存在'
];
}
...
...
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