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
fbe5449c
Commit
fbe5449c
authored
Jun 26, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cfe4eeb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
OfficeRoomApiService.php
application/api/service/OfficeRoomApiService.php
+6
-4
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+1
-5
No files found.
application/api/service/OfficeRoomApiService.php
View file @
fbe5449c
...
@@ -42,15 +42,17 @@ class OfficeRoomApiService
...
@@ -42,15 +42,17 @@ class OfficeRoomApiService
$where
[
'b.disc'
]
=
$params
[
'disc'
];
//区
$where
[
'b.disc'
]
=
$params
[
'disc'
];
//区
}
}
if
(
isset
(
$params
[
'id'
]))
{
$where
[
'a.id'
]
=
$params
[
'id'
];
//楼盘id
}
if
(
isset
(
$params
[
'title'
]))
{
if
(
isset
(
$params
[
'title'
]))
{
$where
[
'b.title'
]
=
[
'LIKE'
,
'%'
.
$params
[
'title'
]
.
'%'
];
//楼盘名
$where
[
'b.title'
]
=
[
'LIKE'
,
'%'
.
$params
[
'title'
]
.
'%'
];
//楼盘名
}
}
if
(
isset
(
$params
[
'address'
]))
{
if
(
isset
(
$params
[
'id'
]))
{
$where
[
'b.address'
]
=
[
'LIKE'
,
'%'
.
$params
[
'address'
]
.
'%'
];
//楼盘地址
$where
[
'a.id'
]
=
$params
[
'id'
];
}
}
if
(
isset
(
$params
[
'
`business_district_id`
'
]))
{
if
(
isset
(
$params
[
'
business_district_id
'
]))
{
$where
[
'b.business_district_id'
]
=
$params
[
'business_district_id'
];
//商圈id
$where
[
'b.business_district_id'
]
=
$params
[
'business_district_id'
];
//商圈id
}
}
...
...
application/index/service/OfficeRoomService.php
View file @
fbe5449c
...
@@ -1213,11 +1213,7 @@ class OfficeRoomService
...
@@ -1213,11 +1213,7 @@ class OfficeRoomService
$where
[
'b.address'
]
=
[
'LIKE'
,
'%'
.
$params
[
'address'
]
.
'%'
];
//楼盘地址
$where
[
'b.address'
]
=
[
'LIKE'
,
'%'
.
$params
[
'address'
]
.
'%'
];
//楼盘地址
}
}
if
(
isset
(
$params
[
'id'
]))
{
if
(
isset
(
$params
[
'business_district_id'
]))
{
$where
[
'a.id'
]
=
$params
[
'id'
];
}
if
(
isset
(
$params
[
'`business_district_id`'
]))
{
$where
[
'b.business_district_id'
]
=
$params
[
'business_district_id'
];
//商圈id
$where
[
'b.business_district_id'
]
=
$params
[
'business_district_id'
];
//商圈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