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
208ade83
Commit
208ade83
authored
Nov 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最适合业态搜索
parent
fd743851
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Houses.php
application/index/controller/Houses.php
+3
-4
No files found.
application/index/controller/Houses.php
View file @
208ade83
...
@@ -213,7 +213,7 @@ class Houses extends Basic
...
@@ -213,7 +213,7 @@ class Houses extends Basic
/*对内楼盘名*/
/*对内楼盘名*/
if
(
$this
->
params
[
'internal_title'
]
!=
NULL
)
{
if
(
$this
->
params
[
'internal_title'
]
!=
NULL
)
{
$where
[
'internal_title'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_title'
]
.
'%'
];
$where
[
'internal_title'
]
=
[
'LIKE'
,
'%'
.
trim
(
$this
->
params
[
'internal_title'
])
.
'%'
];
}
}
/*对外楼盘名*/
/*对外楼盘名*/
...
@@ -223,7 +223,7 @@ class Houses extends Basic
...
@@ -223,7 +223,7 @@ class Houses extends Basic
/*楼盘地址搜索*/
/*楼盘地址搜索*/
if
(
$this
->
params
[
'internal_address'
]
!=
NULL
)
{
if
(
$this
->
params
[
'internal_address'
]
!=
NULL
)
{
$where
[
'internal_address'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
$where
[
'internal_address'
]
=
[
'LIKE'
,
'%'
.
trim
(
$this
->
params
[
'internal_address'
])
.
'%'
];
}
}
/*是否独家0否1是*/
/*是否独家0否1是*/
...
@@ -232,11 +232,10 @@ class Houses extends Basic
...
@@ -232,11 +232,10 @@ class Houses extends Basic
}
}
//适合业态
//适合业态
if
(
!
empty
(
$this
->
params
[
'fit_industry_type'
])
)
{
if
(
isset
(
$this
->
params
[
'fit_industry_type'
])
&&
trim
(
$this
->
params
[
'fit_industry_type'
])
!=
NULL
)
{
$where
[
'fit_industry_type'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'fit_industry_type'
]
.
'%'
];
$where
[
'fit_industry_type'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'fit_industry_type'
]
.
'%'
];
}
}
/*开始时间*/
/*开始时间*/
if
(
$this
->
params
[
'start_date'
]
!=
NULL
&&
$this
->
params
[
'end_date'
]
==
NULL
)
{
if
(
$this
->
params
[
'start_date'
]
!=
NULL
&&
$this
->
params
[
'end_date'
]
==
NULL
)
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
.
' 00:00:00'
];
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
.
' 00:00:00'
];
...
...
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