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
289359db
Commit
289359db
authored
Aug 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步修改客户跟进返回字段
parent
10f6e07b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Remark.php
application/index/controller/Remark.php
+1
-1
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+6
-4
No files found.
application/index/controller/Remark.php
View file @
289359db
...
@@ -100,7 +100,7 @@ class Remark extends Basic
...
@@ -100,7 +100,7 @@ class Remark extends Basic
$where
[
'agent_id'
]
=
[
'in'
,
$agent_id_arr
];
$where
[
'agent_id'
]
=
[
'in'
,
$agent_id_arr
];
}
}
}
}
$field
=
'user_id,create_time,content,user_status,labels_id,agent_id'
;
$field
=
'user_id,create_time,content,user_status,labels_id,agent_id
as f_agent_id
'
;
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
...
...
application/model/UPhoneFollowPp.php
View file @
289359db
...
@@ -277,14 +277,16 @@ class UPhoneFollowPp extends BaseModel
...
@@ -277,14 +277,16 @@ class UPhoneFollowPp extends BaseModel
$label_data
=
$m_label
->
field
(
'id,name'
)
->
where
(
'type'
,
1
)
->
select
();
$label_data
=
$m_label
->
field
(
'id,name'
)
->
where
(
'type'
,
1
)
->
select
();
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
if
(
!
empty
(
$v
[
'agent_id'
]))
{
if
(
!
empty
(
$v
[
'
f_
agent_id'
]))
{
$data
[
$k
][
'admin'
]
=
$m_agent
->
getAgentsById
(
$v
[
'agent_id'
],
'name'
);
$data
[
$k
][
'admin'
]
=
$m_agent
->
getAgentsById
(
$v
[
'
f_
agent_id'
],
'name'
);
}
}
if
(
!
empty
(
$v
[
'user_id'
]))
{
if
(
!
empty
(
$v
[
'user_id'
]))
{
$user_data
=
$m_user
->
getUserById
(
'user_name,user_phone'
,
$v
[
'user_id'
]);
$user_data
=
$m_user
->
getUserById
(
'user_name,user_phone
,vip,agent_id
'
,
$v
[
'user_id'
]);
$data
[
$k
][
'user_name'
]
=
$user_data
[
'user_name'
];
$data
[
$k
][
'user_name'
]
=
$user_data
[
'user_name'
];
$data
[
$k
][
'user_phone'
]
=
$user_data
[
'user_phone'
];
$data
[
$k
][
'user_phone'
]
=
$user_data
[
'user_phone'
];
$data
[
$k
][
'vip'
]
=
$user_data
[
'vip'
];
$data
[
$k
][
'agent_id'
]
=
$user_data
[
'agent_id'
];
//客户客方
}
}
if
(
!
isset
(
$v
[
'labels_id'
]))
{
if
(
!
isset
(
$v
[
'labels_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