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
3eaa9f86
Commit
3eaa9f86
authored
Oct 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询经纪人修改
parent
c3052632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Broker.php
application/api/controller/Broker.php
+8
-3
No files found.
application/api/controller/Broker.php
View file @
3eaa9f86
...
...
@@ -55,7 +55,7 @@ class Broker extends Basic
$m_report
=
new
OReportModel
();
$report_fields
=
'COUNT( a.report_agent_id ) AS num,a.report_agent_id '
;
$report_where
[
'b.house_id'
]
=
$params
[
'house_id'
];
$report_where
[
'a.create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d'
,
strtotime
(
"-30 day"
))
,
date
(
'Y-m-d'
)
]];
$report_where
[
'a.create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d'
,
strtotime
(
"-30 day"
))
.
' 00:00:00'
,
date
(
'Y-m-d'
)
.
' 23:59:59'
]];
$report_agent_id
=
$m_report
->
getMaxReportAgent
(
$report_fields
,
$report_where
);
if
(
!
empty
(
$report_agent_id
[
'report_agent_id'
]))
{
...
...
@@ -67,12 +67,17 @@ class Broker extends Basic
$where
[
'a.status'
]
=
0
;
$list
=
$agents
->
getUser
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
$where
);
if
(
!
empty
(
$agent_client
[
'id'
]))
{
$agent_id
=
[];
foreach
(
$list
as
$v
)
{
$agent_id
[]
=
$v
[
'id'
];
//下面去重
}
if
(
!
empty
(
$agent_client
[
'id'
])
&&
!
in_array
(
$agent_client
[
'id'
],
$agent_id
))
{
$agent_client
[
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
array_unshift
(
$list
,
$agent_client
);
}
if
(
!
empty
(
$report_agent
[
0
][
'id'
]))
{
if
(
!
empty
(
$report_agent
[
0
][
'id'
])
&&
!
in_array
(
$report_agent
[
0
][
'id'
],
$agent_id
)
)
{
$report_agent
[
0
][
'show_content'
]
=
'我对本铺非常了解,最近带看本铺多次'
;
array_unshift
(
$list
,
$report_agent
[
0
]);
}
...
...
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