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
919ab834
Commit
919ab834
authored
Jan 30, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
街铺搜索范围只有room_area
parent
cce2cba9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Shop.php
application/api/controller/Shop.php
+9
-2
No files found.
application/api/controller/Shop.php
View file @
919ab834
...
...
@@ -90,15 +90,22 @@ class Shop extends Basic
$conditions
[
'a.shangpu_type'
]
=
array
(
"eq"
,
$params
[
'shangpu_type'
]
);
}
//面积 room_area最小面积 room_area2最大面积 参考老版本
//面积 room_area最小面积 room_area2最大面积 参考老版本
if
(
isset
(
$params
[
'area_start'
])
&&
isset
(
$params
[
'area_end'
]))
{
$conditions
[
'a.room_area'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
$conditions
[
'a.room_area2'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
//街铺只有一个room_area
if
(
$params
[
'shangpu_type'
]
==
0
){
$conditions
[
'a.room_area2'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
}
}
else
if
(
isset
(
$params
[
'area_start'
])
&&
!
isset
(
$params
[
'area_end'
]))
{
//100米以上不用传结束面积
$conditions
[
'a.room_area'
]
=
array
(
'egt'
,
$params
[
'area_start'
]
);
$conditions
[
'a.room_area2'
]
=
array
(
'egt'
,
$params
[
'area_start'
]
);
if
(
$params
[
'shangpu_type'
]
==
0
){
$conditions
[
'a.room_area2'
]
=
array
(
'egt'
,
$params
[
'area_start'
]
);
}
}
if
(
isset
(
$params
[
'money_start'
])
&&
isset
(
$params
[
'money_end'
]))
{
//面积
$conditions
[
'a.price'
]
=
array
(
'between'
,
array
(
$params
[
'money_start'
],
$params
[
'money_end'
]
)
);
}
else
if
(
isset
(
$params
[
'money_start'
])
&&
!
isset
(
$params
[
'money_end'
]))
{
...
...
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