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
b8fe6ea6
Commit
b8fe6ea6
authored
Jun 28, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c6c3a398
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
OfficeRoomApiService.php
application/api/service/OfficeRoomApiService.php
+9
-2
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+12
-3
No files found.
application/api/service/OfficeRoomApiService.php
View file @
b8fe6ea6
...
...
@@ -95,8 +95,15 @@ class OfficeRoomApiService
if
(
isset
(
$params
[
'price_total_start'
])
&&
isset
(
$params
[
'price_total_end'
]))
{
$where
[
'a.price_total'
]
=
[
'between'
,
[
$params
[
'price_total_start'
]
*
100
,
$params
[
'price_total_end'
]
*
100
]];
//租金总单价
}
if
(
isset
(
$params
[
'shop_sign'
]))
{
$where
[
'a.shop_sign'
]
=
[
'like'
,
'%'
.
$params
[
'shop_sign'
]
.
'%'
];
//商铺标签
if
(
isset
(
$params
[
'shop_sign'
])
&&
$params
[
'shop_sign'
]
!=
"全部"
)
{
//商铺标签
$shopTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shop_sign'
]));
if
(
count
(
$shopTagsArr
)
==
1
)
{
$where
[
'a.shop_sign'
]
=
array
(
'like'
,
"%"
.
trim
(
$shopTagsArr
[
0
])
.
"%"
);
}
else
{
foreach
(
$shopTagsArr
as
$key
=>
$val
)
{
$where
[
'a.shop_sign'
][]
=
array
(
'like'
,
"%"
.
trim
(
$val
)
.
"%"
);
}
}
}
if
(
isset
(
$params
[
'stations_ids'
]))
{
$ids
=
$this
->
getBuildingByStations
(
$params
[
'stations_ids'
]);
...
...
application/index/service/OfficeRoomService.php
View file @
b8fe6ea6
...
...
@@ -1317,9 +1317,18 @@ class OfficeRoomService
if
(
isset
(
$params
[
'status'
]))
{
$where
[
'a.status'
]
=
$params
[
'status'
];
//状态 1上架 2下架
}
if
(
isset
(
$params
[
'shop_sign'
]))
{
$where
[
'a.shop_sign'
]
=
[
'like'
,
'%'
.
$params
[
'shop_sign'
]
.
'%'
];
//商铺标签
if
(
isset
(
$params
[
'is_show'
]))
{
$where
[
'a.is_show'
]
=
$params
[
'is_show'
];
//状态 是否对客户显示
}
if
(
isset
(
$params
[
'shop_sign'
])
&&
$params
[
'shop_sign'
]
!=
"全部"
)
{
//商铺标签
$shopTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shop_sign'
]));
if
(
count
(
$shopTagsArr
)
==
1
)
{
$where
[
'a.shop_sign'
]
=
array
(
'like'
,
"%"
.
trim
(
$shopTagsArr
[
0
])
.
"%"
);
}
else
{
foreach
(
$shopTagsArr
as
$key
=>
$val
)
{
$where
[
'a.shop_sign'
][]
=
array
(
'like'
,
"%"
.
trim
(
$val
)
.
"%"
);
}
}
}
if
(
isset
(
$params
[
'is_carefully_chosen'
]))
{
...
...
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