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
cf5cb1fd
Commit
cf5cb1fd
authored
Apr 10, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
e0c238e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
Broker.php
application/api_broker/controller/Broker.php
+1
-1
OrderLogService.php
application/api_broker/service/OrderLogService.php
+3
-3
ReportService.php
application/api_broker/service/ReportService.php
+1
-0
FollowUpLogModel.php
application/model/FollowUpLogModel.php
+16
-1
No files found.
application/api_broker/controller/Broker.php
View file @
cf5cb1fd
...
...
@@ -235,7 +235,7 @@ class Broker extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
"user_id" =>
1
"user_id" =>
8738
);*/
if
(
!
isset
(
$params
[
'user_id'
]))
{
...
...
application/api_broker/service/OrderLogService.php
View file @
cf5cb1fd
...
...
@@ -353,9 +353,9 @@ class OrderLogService
}
}
//跟进
$field_follow_up
=
"
id,agent_id,agent_name,user_type,decision_maker,industry_type,area_requirement,price_requirement,province,
city,
district,business_area,explain,explain_img,create_ti
me"
;
$followUpLogData
=
$followUpLogModel
->
selectFollowUpListByReport
Id
(
$field_follow_up
,
$reportParams
);
$field_follow_up
=
"
a.id,a.agent_id,a.agent_name,a.user_type,a.decision_maker,a.industry_type,a.area_requirement,a.price_requirement,a.province,a.
city,
a.district,a.business_area,a.explain,a.explain_img,a.create_time,b.name,b.img,c.store_na
me"
;
$followUpLogData
=
$followUpLogModel
->
getFollowUpByOrder
Id
(
$field_follow_up
,
$reportParams
);
if
(
count
(
$followUpLogData
)
>
0
)
{
foreach
(
$followUpLogData
as
$k
=>
$v
)
{
...
...
application/api_broker/service/ReportService.php
View file @
cf5cb1fd
...
...
@@ -111,6 +111,7 @@ class ReportService
//todo 获取我报备的我的案场的,如果是店长则获取其下所有的经纪人
$vModel
=
new
VerifyService
();
$agentArr
=
$vModel
->
getAgentsByAgentId
(
$params
[
"report_agent_id"
]);
// dump($agentArr);
if
(
$agentArr
)
{
$params
[
"report_agent_id"
]
=
$agentArr
;
}
...
...
application/model/FollowUpLogModel.php
View file @
cf5cb1fd
...
...
@@ -94,7 +94,22 @@ class FollowUpLogModel extends Model
->
where
(
$where_
)
->
select
();
}
public
function
getFollowUpByOrderId
(
$field
,
$params
){
$where_
=
[];
if
(
isset
(
$params
[
"report_id"
]))
{
$where_
[
"report_id"
]
=
$params
[
"report_id"
];
}
if
(
isset
(
$params
[
"agent_id"
]))
{
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
}
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = c.id"
,
"left"
)
->
join
(
"a_store c"
,
"b.store_id = c.id"
,
"left"
)
->
where
(
$where_
)
->
select
();
}
/**
* 获取经纪人新增带看数量
...
...
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