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
7e809be7
Commit
7e809be7
authored
Jun 05, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f3d2ffbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
OfficeRoom.php
application/api_broker/controller/OfficeRoom.php
+3
-1
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+2
-1
No files found.
application/api_broker/controller/OfficeRoom.php
View file @
7e809be7
...
...
@@ -257,9 +257,11 @@ class OfficeRoom extends Basic
*/
public
function
getMyBuildingRoom
()
{
$params
=
$this
->
params
;
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$result
=
$this
->
service
->
getMyBuildingRoom
(
$pageNo
,
$pageSize
,
$this
->
agentId
);
$status
=
isset
(
$params
[
'status'
])
?
$params
[
'status'
]
:
1
;
$result
=
$this
->
service
->
getMyBuildingRoom
(
$status
,
$pageNo
,
$pageSize
,
$this
->
agentId
);
return
$this
->
response
(
$result
[
'status'
],
$result
[
'msg'
],
$result
[
'data'
]);
}
...
...
application/index/service/OfficeRoomService.php
View file @
7e809be7
...
...
@@ -1109,8 +1109,9 @@ class OfficeRoomService
* @param $agentId
* @return array
*/
public
function
getMyBuildingRoom
(
$pageNo
,
$pageSize
,
$agentId
){
public
function
getMyBuildingRoom
(
$
status
,
$
pageNo
,
$pageSize
,
$agentId
){
$field
=
"a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,a.decoration"
;
$params
[
"a.status"
]
=
$status
;
$params
[
"c.agent_id"
]
=
$agentId
;
$params
[
"c.type"
]
=
2
;
$params
[
"c.is_del"
]
=
0
;
...
...
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