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
eda11ce2
Commit
eda11ce2
authored
Jun 11, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
price
parent
1c485758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+3
-5
No files found.
application/index/service/OfficeRoomService.php
View file @
eda11ce2
...
@@ -1244,7 +1244,7 @@ class OfficeRoomService
...
@@ -1244,7 +1244,7 @@ class OfficeRoomService
$order
=
'a.home_page_sort desc'
;
$order
=
'a.home_page_sort desc'
;
}
}
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name,a.building_id'
;
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name,a.building_id
,a.price,a.price_total
'
;
try
{
try
{
$data
=
$this
->
m_office_room
->
getRoomBuilding
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
$data
=
$this
->
m_office_room
->
getRoomBuilding
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
@@ -1256,10 +1256,8 @@ class OfficeRoomService
...
@@ -1256,10 +1256,8 @@ class OfficeRoomService
$result_data
=
[];
$result_data
=
[];
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'price'
]
=
$this
->
MinField
(
$v
[
'building_id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$v
[
'price'
])
?
0
:
$v
[
'price'
]
/
100
;
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
]
/
100
;
$tmp
[
'price_total'
]
=
empty
(
$v
[
'price_total'
])
?
0
:
$v
[
'price_total'
]
/
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
[
'building_id'
]);
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'building_id'
]);
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
...
...
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