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
d5655218
Commit
d5655218
authored
Jun 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房源搜索
parent
b4e775bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+5
-5
OfficeGRoom.php
application/model/OfficeGRoom.php
+1
-0
No files found.
application/index/service/OfficeRoomService.php
View file @
d5655218
...
...
@@ -900,17 +900,17 @@ class OfficeRoomService
$where
=
[];
/*所在区*/
if
(
isset
(
$params
[
'disc'
]))
{
$where
[
'
a
.disc'
]
=
$params
[
'disc'
];
$where
[
'
b
.disc'
]
=
$params
[
'disc'
];
}
/*所在市*/
if
(
isset
(
$params
[
'city'
]))
{
$where
[
'
a
.city'
]
=
$params
[
'city'
];
$where
[
'
b
.city'
]
=
$params
[
'city'
];
}
/*商圈*/
if
(
isset
(
$params
[
'business_district_id'
]))
{
$where
[
'
c
.business_district_id'
]
=
$params
[
'business_district_id'
];
$where
[
'
b
.business_district_id'
]
=
$params
[
'business_district_id'
];
}
/*状态 1上架 2下架*/
...
...
@@ -981,7 +981,7 @@ class OfficeRoomService
/*可容纳工位*/
if
(
isset
(
$params
[
'station_end'
])
&&
isset
(
$params
[
'station_start'
]))
{
$where
[
'a.station_start'
]
=
[
'>'
,
$params
[
'station_start'
]];
$where
[
'a.station_end'
]
=
[
'
>
'
,
$params
[
'station_end'
]];
$where
[
'a.station_end'
]
=
[
'
<
'
,
$params
[
'station_end'
]];
}
//编号
...
...
@@ -991,7 +991,7 @@ class OfficeRoomService
//地址
if
(
isset
(
$params
[
'address'
]))
{
$where
[
'
a
.address'
]
=
[
'like'
,
'%'
.
$params
[
'address'
]
.
'%'
];
$where
[
'
b
.address'
]
=
[
'like'
,
'%'
.
$params
[
'address'
]
.
'%'
];
}
//是否独家0否1是
...
...
application/model/OfficeGRoom.php
View file @
d5655218
...
...
@@ -310,6 +310,7 @@ class OfficeGRoom extends BaseModel
->
limit
(
$page_size
)
->
page
(
$page_no
)
->
group
(
'a.id'
)
->
order
(
'a.id desc'
)
->
select
();
}
...
...
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