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
b4e775bd
Commit
b4e775bd
authored
Jun 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房源搜索
parent
779c1f30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+9
-8
No files found.
application/index/service/OfficeRoomService.php
View file @
b4e775bd
...
@@ -843,7 +843,7 @@ class OfficeRoomService
...
@@ -843,7 +843,7 @@ class OfficeRoomService
return
$result
;
return
$result
;
}
}
$landlord_where
[
'phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'landlord_phone'
]
.
'%'
];
$landlord_where
[
'phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'landlord_phone'
]
.
'%'
];
$landlord_where
[
'
status
'
]
=
0
;
$landlord_where
[
'
is_del
'
]
=
0
;
$landlord_arr
=
$this
->
landlord_phone
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$landlord_where
);
$landlord_arr
=
$this
->
landlord_phone
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$landlord_where
);
if
(
empty
(
$landlord_arr
))
{
if
(
empty
(
$landlord_arr
))
{
...
@@ -855,7 +855,7 @@ class OfficeRoomService
...
@@ -855,7 +855,7 @@ class OfficeRoomService
$landlord_house_id
[]
=
$v
[
'house_id'
];
$landlord_house_id
[]
=
$v
[
'house_id'
];
}
}
$landlord_str
=
implode
(
','
,
$landlord_house_id
);
$landlord_str
=
implode
(
','
,
$landlord_house_id
);
$where
[]
=
[
'EXP'
,
"id in (
{
$landlord_str
}
)"
];
$where
[]
=
[
'EXP'
,
"
a.
id in (
{
$landlord_str
}
)"
];
}
}
}
}
/*房东手机号搜索 end*/
/*房东手机号搜索 end*/
...
@@ -945,12 +945,12 @@ class OfficeRoomService
...
@@ -945,12 +945,12 @@ class OfficeRoomService
/*租金总价*/
/*租金总价*/
if
(
isset
(
$params
[
'price_total_end'
]))
{
if
(
isset
(
$params
[
'price_total_end'
]))
{
$where
[
'a.price_total
_end
'
]
=
$params
[
'price_total_end'
];
$where
[
'a.price_total'
]
=
$params
[
'price_total_end'
];
}
}
/*租金总价*/
/*租金总价*/
if
(
isset
(
$params
[
'price_total_end'
])
&&
isset
(
$params
[
'price_total_start'
]))
{
if
(
isset
(
$params
[
'price_total_end'
])
&&
isset
(
$params
[
'price_total_start'
]))
{
$where
[
'a.
area_end
'
]
=
[
'between'
,
[
$params
[
'price_total_start'
],
$params
[
'price_total_end'
]]];
$where
[
'a.
price_total
'
]
=
[
'between'
,
[
$params
[
'price_total_start'
],
$params
[
'price_total_end'
]]];
}
}
/*租金单价*/
/*租金单价*/
...
@@ -960,12 +960,12 @@ class OfficeRoomService
...
@@ -960,12 +960,12 @@ class OfficeRoomService
/*租金单价*/
/*租金单价*/
if
(
isset
(
$params
[
'price_end'
]))
{
if
(
isset
(
$params
[
'price_end'
]))
{
$where
[
'a.price
_total_end
'
]
=
$params
[
'price_end'
];
$where
[
'a.price'
]
=
$params
[
'price_end'
];
}
}
/*租金单价*/
/*租金单价*/
if
(
isset
(
$params
[
'price_end'
])
&&
isset
(
$params
[
'price_start'
]))
{
if
(
isset
(
$params
[
'price_end'
])
&&
isset
(
$params
[
'price_start'
]))
{
$where
[
'a.
area_end
'
]
=
[
'between'
,
[
$params
[
'price_start'
],
$params
[
'price_end'
]]];
$where
[
'a.
price
'
]
=
[
'between'
,
[
$params
[
'price_start'
],
$params
[
'price_end'
]]];
}
}
/*可容纳工位*/
/*可容纳工位*/
...
@@ -979,8 +979,9 @@ class OfficeRoomService
...
@@ -979,8 +979,9 @@ class OfficeRoomService
}
}
/*可容纳工位*/
/*可容纳工位*/
if
(
isset
(
$params
[
'station_end'
])
&&
isset
(
$params
[
'price_start'
]))
{
if
(
isset
(
$params
[
'station_end'
])
&&
isset
(
$params
[
'station_start'
]))
{
$where
[
'a.area_end'
]
=
[
'between'
,
[
$params
[
'station_start'
],
$params
[
'station_end'
]]];
$where
[
'a.station_start'
]
=
[
'>'
,
$params
[
'station_start'
]];
$where
[
'a.station_end'
]
=
[
'>'
,
$params
[
'station_end'
]];
}
}
//编号
//编号
...
...
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