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
a9dbd07c
Commit
a9dbd07c
authored
Dec 06, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最适合业态
parent
26cf7b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Shop.php
application/api/controller/Shop.php
+8
-3
No files found.
application/api/controller/Shop.php
View file @
a9dbd07c
...
...
@@ -64,6 +64,7 @@ class Shop extends Basic
"site_area" => 4, //来源 1c首页 2c搜索 6pc官网商铺列表
// "title" => "vv", //1,2 external_title ,3,4internal_title
"house_id" => 4,
"fit_industry_type" => "",//适合业态
"business_id" => 4,
"is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺)
...
...
@@ -93,8 +94,9 @@ class Shop extends Basic
if
(
empty
(
$params
[
'city'
])
&&
(
$params
[
'city'
]
==
"杭州市"
||
$params
[
'city'
]
==
"上海市"
))
{
return
$this
->
response
(
"101"
,
"城市不能为空"
);
}
$field
=
"id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type,external_image_id
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_show_image"
;
$field
=
"id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type,
external_image_id,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,
rent_price,is_show_image,fit_industry_type"
;
$conditions
[
"city"
]
=
trim
(
$params
[
'city'
]);
...
...
@@ -122,6 +124,9 @@ class Shop extends Basic
$conditions
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
,
$end_time
));
}
if
(
isset
(
$params
[
'fit_industry_type'
]))
{
//适合业态
$conditions
[
'fit_industry_type'
]
=
array
(
'like'
,
"%"
.
trim
(
$params
[
'fit_industry_type'
])
.
"%"
);
}
$order_
=
""
;
$spTagArr
=
array
();
switch
(
$params
[
'site_area'
])
{
...
...
@@ -325,7 +330,7 @@ class Shop extends Basic
b.enter_num,b.external_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
b.auditorium,b.tiny_brochure_url,b.start_business_date,b.fee_rule,b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,
b.area_width,b.depth,b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration
,b.rim_mating,b.section,b.crowd,b.other,a.is_show_image"
;
,b.rim_mating,b.section,b.crowd,b.other,a.is_show_image
,a.fit_industry_type
"
;
$conditions
[
'a.status'
]
=
array
(
"eq"
,
1
);
$conditions
[
'a.is_show'
]
=
array
(
'eq'
,
0
);
//c端只显示公开楼盘
...
...
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