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
223cb1a5
Commit
223cb1a5
authored
Jan 12, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3807ec35
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-1
UserLogService.php
application/index/service/UserLogService.php
+16
-3
UserService.php
application/index/service/UserService.php
+1
-1
No files found.
application/api_broker/service/OrderLogService.php
View file @
223cb1a5
...
...
@@ -994,7 +994,7 @@ class OrderLogService
}
//跟进
$field_follow_up
=
"a.id,a.agent_id,a.agent_name,a.user_
status,a.user_
type,a.decision_maker,a.industry_type,a.area_requirement,a.price_requirement,a.province,a.city,
$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_name"
;
$followUpLogData
=
$followUpLogModel
->
getFollowUpByOrderId
(
$field_follow_up
,
$reportParams
);
...
...
application/index/service/UserLogService.php
View file @
223cb1a5
...
...
@@ -13,6 +13,7 @@ use app\model\ACollectUser;
use
app\model\ASite
;
use
app\model\GOperatingRecords
;
use
app\model\OReportModel
;
use
app\model\ULabels
;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUpTemporary
;
use
app\model\Users
;
...
...
@@ -209,26 +210,38 @@ class UserLogService
public
function
phoneFollowUpNew
(
$user_id
,
$site_id
,
$page_no
,
$page_size
)
{
// $userParams["type"] = 0; //电话跟进 $userParams["type"] = 1; //普通跟进
$m_label
=
new
ULabels
();
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
$uPhoneFollowTempModel
=
new
UPhoneFollowUpTemporary
(
$site_id
);
//电话跟进
$userParams
[
"user_id"
]
=
$user_id
;
$field_user_follow
=
"a.id,a.content,a.user_id,a.agent_id,a.type,a.create_time,a.user_status,b.name,b.phone,b.img"
;
$field_user_follow
=
"a.id,a.
labels_id,a.
content,a.user_id,a.agent_id,a.type,a.create_time,a.user_status,b.name,b.phone,b.img"
;
$bargainData
=
$uPhoneFollowTempModel
->
getFollowUpList
(
$field_user_follow
,
$userParams
,
$page_no
,
$page_size
);
foreach
(
$bargainData
as
$k
=>
$v
)
{
$bargainData
[
$k
][
'label_name'
]
=
array_key_exists
(
$v
[
'labels_id'
],
$label_data
)
?
$label_data
[
$v
[
'labels_id'
]]
:
''
;
}
return
$bargainData
;
}
public
function
phoneFollowUp
(
$user_id
,
$site_id
,
$page_no
,
$page_size
)
{
// $userParams["type"] = 0; //电话跟进 $userParams["type"] = 1; //普通跟进
$m_label
=
new
ULabels
();
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
$uPhoneFollowModel
=
new
UPhoneFollowUp
(
$site_id
);
//电话跟进
$userParams
[
"user_id"
]
=
$user_id
;
$field_user_follow
=
"a.id,a.content,a.user_id,a.agent_id,a.type,a.create_time,a.user_status,b.name,b.phone,b.img"
;
$field_user_follow
=
"a.id,a.
labels_id,a.
content,a.user_id,a.agent_id,a.type,a.create_time,a.user_status,b.name,b.phone,b.img"
;
$bargainData
=
$uPhoneFollowModel
->
getFollowUpList
(
$field_user_follow
,
$userParams
,
$page_no
,
$page_size
);
foreach
(
$bargainData
as
$k
=>
$v
)
{
$bargainData
[
$k
][
'label_name'
]
=
array_key_exists
(
$v
[
'labels_id'
],
$label_data
)
?
$label_data
[
$v
[
'labels_id'
]]
:
''
;
}
return
$bargainData
;
}
...
...
application/index/service/UserService.php
View file @
223cb1a5
...
...
@@ -595,7 +595,7 @@ class UserService
$s_vip
=
new
VipService
();
//0:有权限 1:无权限
$is_can_edit
=
$s_vip
->
vip
(
$agent_id
,
'removeUserBind'
);
if
(
$is_can_edit
==
1
)
{
if
(
$is_can_edit
==
1
and
(
$user_agent_id
[
'agent_id'
!=
$agent_id
])
)
{
return
2
;
//无解除关联权限权限
}
// 客户bind_id不等于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