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
1a9b66fc
Commit
1a9b66fc
authored
Nov 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房东手机号搜索
parent
7327b571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Houses.php
application/index/controller/Houses.php
+5
-3
No files found.
application/index/controller/Houses.php
View file @
1a9b66fc
...
...
@@ -321,18 +321,20 @@ class Houses extends Basic
/*房东手机号搜索*/
if
(
$this
->
params
[
'landlord_phone'
]
!=
NULL
)
{
$m_house_ext
=
new
G
HousesExt
();
$m_house_ext
=
new
G
LandlordPhone
();
if
(
strlen
(
$this
->
params
[
'landlord_phone'
])
!=
11
)
{
return
$this
->
response
(
101
,
'房东手机不足11位'
);
}
$house_ext_where
[
'landlord_phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
$landlord_arr
=
$m_house_ext
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$house_ext_where
);
$landlord_where
[
'phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
$landlord_where
[
'status'
]
=
0
;
$landlord_arr
=
$m_house_ext
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$landlord_where
);
if
(
empty
(
$landlord_arr
))
{
$data
[
'data'
][
'list'
]
=
[];
$data
[
'data'
][
'total'
]
=
0
;
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
$landlord_house_id
=
[];
foreach
(
$landlord_arr
as
$k
=>
$v
)
{
$landlord_house_id
[]
=
$v
[
'house_id'
];
}
...
...
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