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
3090f95e
Commit
3090f95e
authored
Feb 27, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人查询
parent
0dce1a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
Broker.php
application/api/controller/Broker.php
+14
-2
No files found.
application/api/controller/Broker.php
View file @
3090f95e
...
...
@@ -149,7 +149,11 @@ class Broker extends Basic
$fields
=
'a.id,a.name,a.img,a.phone'
;
//客方
if
(
!
empty
(
$this
->
userId
))
{
$client
=
$agents
->
getAgentUser
(
$fields
,
[
'a.id'
=>
$this
->
userId
,
'b.agent_id'
=>
[
'neq'
,
$list
[
0
][
'id'
]]]);
//客方
if
(
!
empty
(
$list
[
0
][
'id'
]))
{
$client_where
[
'b.agent_id'
]
=
[
'neq'
,
$list
[
0
][
'id'
]];
}
$client_where
[
'a.id'
]
=
$this
->
userId
;
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
if
(
!
empty
(
$client
)){
$list
[
1
]
=
$client
;
$list
[
1
][
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
...
...
@@ -157,9 +161,17 @@ class Broker extends Basic
}
//独家方
if
(
!
empty
(
$list
[
0
][
'id'
])
&&
!
empty
(
$list
[
1
][
'id'
]))
{
$where
[
'a.id'
]
=
[
'not in'
,
[
$list
[
0
][
'id'
],
$list
[
1
][
'id'
]]];
}
elseif
(
!
empty
(
$list
[
0
][
'id'
]))
{
$where
[
'a.id'
]
=
[
'neq'
,
$list
[
0
][
'id'
]];
}
elseif
(
!
empty
(
$list
[
1
][
'id'
]))
{
$where
[
'a.id'
]
=
[
'neq'
,
$list
[
1
][
'id'
]];
}
$where
[
'b.houses_id'
]
=
$this
->
params
[
'house_id'
];
$where
[
'b.is_del'
]
=
$where
[
'a.status'
]
=
0
;
$where
[
'a.id'
]
=
[
'not in'
,
[
$list
[
0
][
'id'
],
$list
[
2
][
'id'
]]];
$where
[
'b.type'
]
=
3
;
$house_agent
=
$agents
->
getAgentHouseType
(
$fields
,
$where
);
if
(
!
empty
(
$house_agent
)){
...
...
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