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
7c9b9628
Commit
7c9b9628
authored
Sep 05, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈刷选
parent
f8474de9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Shop.php
application/api_broker/controller/Shop.php
+8
-3
No files found.
application/api_broker/controller/Shop.php
View file @
7c9b9628
...
...
@@ -65,6 +65,7 @@ class Shop extends Basic
"shop_type" => 0, //商铺类型(0商场,1街铺)
"address" => "111",
"disc" => "黄浦区",
"business_id" => 11,
"industry_type" => "休闲娱乐",
"shop_area_start" => 45,//面积起始范围 街铺start和end面积一样
"shop_area_end" => 65,//面积结束范围
...
...
@@ -150,6 +151,9 @@ class Shop extends Basic
if
(
isset
(
$params
[
'disc'
]))
{
//区域
$conditions
[
'disc'
]
=
array
(
'eq'
,
trim
(
$params
[
'disc'
])
);
}
if
(
isset
(
$params
[
'business_id'
]))
{
//区域
$conditions
[
'business_district_id'
]
=
array
(
'eq'
,
trim
(
$params
[
'business_id'
])
);
}
if
(
isset
(
$params
[
'industry_type'
]))
{
//业态
$conditions
[
'industry_type'
]
=
array
(
'like'
,
"%"
.
trim
(
$params
[
'industry_type'
])
.
"%"
);
...
...
@@ -633,14 +637,15 @@ class Shop extends Basic
*
* @return \think\Response
*/
public
function
getBusinessAll
()
{
public
function
getBusinessAll
()
{
$code
=
200
;
$msg
=
''
;
$where
[
'is_del'
]
=
0
;
if
(
$this
->
params
[
'name'
]
!=
NULL
)
{
$where
[
'name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'name'
]
.
'%'
];
$where
[
'name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'province'
]))
{
...
...
@@ -661,7 +666,7 @@ class Shop extends Basic
try
{
$auth_group
=
New
GBusinessDistrict
();
$data
=
$auth_group
->
getList
(
1
,
1000
,
'id desc'
,
$fields
,
$where
);
$data
=
$auth_group
->
getList
(
1
,
1000
,
'id desc'
,
$fields
,
$where
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
$e
->
getMessage
();
...
...
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