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
66355cb2
Commit
66355cb2
authored
Jun 06, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0529-v3.3.0' of
https://gitee.com/zwyjjc/tl_estate
into 0529-v3.3.0
parents
5ec3dba7
c37d0b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+6
-6
No files found.
application/index/service/OfficeRoomService.php
View file @
66355cb2
...
@@ -1218,11 +1218,11 @@ class OfficeRoomService
...
@@ -1218,11 +1218,11 @@ class OfficeRoomService
}
}
if
(
isset
(
$params
[
'is_carefully_chosen'
]))
{
if
(
isset
(
$params
[
'is_carefully_chosen'
]))
{
$where
[
'a.is_carefully_chosen'
]
=
$params
[
'
shop_sig
n'
];
//精选商铺--0否1是
$where
[
'a.is_carefully_chosen'
]
=
$params
[
'
is_carefully_chose
n'
];
//精选商铺--0否1是
$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'
;
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name
,a.building_id
'
;
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
)
{
...
@@ -1234,12 +1234,12 @@ class OfficeRoomService
...
@@ -1234,12 +1234,12 @@ 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
[
'id'
],
'price'
);
$tmp
[
'price'
]
=
$this
->
MinField
(
$v
[
'
building_
id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'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
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
];
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'id'
]);
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'
building_
id'
]);
$area
=
$this
->
MinField
(
$v
[
'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
.
'㎡'
;
$result_data
[]
=
$tmp
;
$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