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
ec2ac01d
Commit
ec2ac01d
authored
Jul 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表搜索
parent
1a327ab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Houses.php
application/index/controller/Houses.php
+18
-0
No files found.
application/index/controller/Houses.php
View file @
ec2ac01d
...
@@ -172,6 +172,11 @@ class Houses extends Basic
...
@@ -172,6 +172,11 @@ class Houses extends Basic
$where
[
'a.internal_title'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_title'
]
.
'%'
];
$where
[
'a.internal_title'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_title'
]
.
'%'
];
}
}
/*对外楼盘名*/
if
(
$this
->
params
[
'external_title'
]
!=
NULL
)
{
$where
[
'a.external_title'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'external_title'
]
.
'%'
];
}
/*楼盘地址搜索*/
/*楼盘地址搜索*/
if
(
$this
->
params
[
'internal_address'
]
!=
NULL
)
{
if
(
$this
->
params
[
'internal_address'
]
!=
NULL
)
{
$where
[
'a.internal_address'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
$where
[
'a.internal_address'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
...
@@ -236,6 +241,19 @@ class Houses extends Basic
...
@@ -236,6 +241,19 @@ class Houses extends Basic
$where
[
'd.landlord_phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
$where
[
'd.landlord_phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
}
}
if
(
empty
(
$this
->
params
[
'area'
]))
{
switch
(
$this
->
params
[
'area'
])
{
case
1
:
$where
[
'a.shop_area_start'
]
=
[
'between'
,
[
0
,
30
]];
break
;
case
2
:
$where
[
'a.shop_area_start'
]
=
[
'between'
,
[
30
,
60
]];
break
;
case
3
:
$where
[
'a.shop_area_start'
]
=
[
'between'
,
[
60
,
100
]];
break
;
default
:
$where
[
'a.shop_area_start'
]
=
[
'>'
,
100
];
}
}
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
,
$this
->
userId
);
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
,
$this
->
userId
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getHouseListDishTotal
(
$where
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getHouseListDishTotal
(
$where
);
...
...
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