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