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
3b582d5c
Commit
3b582d5c
authored
Jun 06, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
building_id
parent
92555d34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+8
-8
OfficeService.php
application/index/service/OfficeService.php
+7
-2
No files found.
application/index/service/OfficeRoomService.php
View file @
3b582d5c
...
...
@@ -1110,7 +1110,7 @@ class OfficeRoomService
* @return array
*/
public
function
getMyBuildingRoom
(
$status
,
$pageNo
,
$pageSize
,
$agentId
){
$field
=
"a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,
$field
=
"a.id,a.
building_id,a.
area,a.price_total,a.price,a.station_start,a.station_end,
a.decoration,b.disc,b.title,d.name as business_name"
;
$params
[
"a.status"
]
=
$status
;
$params
[
"c.agent_id"
]
=
$agentId
;
...
...
@@ -1123,12 +1123,12 @@ class OfficeRoomService
foreach
(
$res
as
$k
=>
$v
)
{
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'price'
]
=
$this
->
MinField
(
$v
[
'id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
];
$tmp
[
'price_total'
]
=
$this
->
MinField
(
$v
[
'id'
],
'price_total'
);
$tmp
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
];
$tmp
[
'price'
]
=
$this
->
MinField
(
$v
[
'
building_
id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
]
/
100
;
$tmp
[
'price_total'
]
=
$this
->
MinField
(
$v
[
'
building_
id'
],
'price_total'
);
$tmp
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
]
/
100
;
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'id'
]);
$area
=
$this
->
MinField
(
$v
[
'id'
],
'area'
);
$area
=
$this
->
MinField
(
$v
[
'
building_
id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
$result_data
[]
=
$tmp
;
}
...
...
@@ -1235,9 +1235,9 @@ class OfficeRoomService
foreach
(
$data
as
$k
=>
$v
)
{
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'price'
]
=
$this
->
MinField
(
$v
[
'building_id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
];
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
]
/
100
;
$tmp
[
'price_total'
]
=
$this
->
MinField
(
$v
[
'building_id'
],
'price_total'
);
$tmp
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
];
$tmp
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
]
/
100
;
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'building_id'
]);
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
...
...
application/index/service/OfficeService.php
View file @
3b582d5c
...
...
@@ -359,11 +359,16 @@ class OfficeService
return
[
'status'
=>
200
,
'msg'
=>
'success'
,
'data'
=>
$result
];
}
//房源列表
/**
* 房源列表
*
* @param $id
* @return false|\PDOStatement|string|\think\Collection
*/
private
function
getRoomList
(
$id
){
$m_office_room
=
new
OfficeGRoom
();
$field
=
"a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,a.decoration"
;
$params
[
"a.id"
]
=
$id
;
$params
[
"a.
building_
id"
]
=
$id
;
$res
=
$m_office_room
->
getRoomInfo
(
$field
,
$params
);
if
(
$res
){
...
...
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