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
340cd57c
Commit
340cd57c
authored
Jan 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model 6
parent
d23a1d8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
Client.php
application/api_broker/controller/Client.php
+3
-3
CellPhone.php
application/index/controller/CellPhone.php
+2
-2
Remark.php
application/index/controller/Remark.php
+12
-12
No files found.
application/api_broker/controller/Client.php
View file @
340cd57c
...
...
@@ -283,9 +283,9 @@ class Client extends Basic
$total
=
$user
->
all_user_count
(
$conditions
);
}
else
{
//跟进
$
UPhoneFollowP
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$user_res
=
$
UPhoneFollowP
p
->
all_user_search
(
$phone_or_name
,
$pagesize
,
$pagenum
);
$total
=
$
UPhoneFollowP
p
->
all_user_search_count
(
$phone_or_name
);
$
s_phone_follow_u
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$user_res
=
$
s_phone_follow_u
p
->
all_user_search
(
$phone_or_name
,
$pagesize
,
$pagenum
);
$total
=
$
s_phone_follow_u
p
->
all_user_search_count
(
$phone_or_name
);
}
if
(
$search_type
!=
'2'
)
...
...
application/index/controller/CellPhone.php
View file @
340cd57c
...
...
@@ -13,7 +13,7 @@ use app\api_broker\service\PushMessageService;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\SecretReport
;
use
app\model\UPhoneFollow
P
p
;
use
app\model\UPhoneFollow
U
p
;
use
app\model\Users
;
use
app\model\TAgentTotalCallModel
;
...
...
@@ -92,7 +92,7 @@ class CellPhone extends Basic
$list
=
$report
->
getCallList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$m_user
=
new
Users
();
$m_phone_follow
=
new
UPhoneFollow
P
p
(
$this
->
siteId
);
$m_phone_follow
=
new
UPhoneFollow
U
p
(
$this
->
siteId
);
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
if
(
empty
(
$v
[
'agents_id'
]))
{
...
...
application/index/controller/Remark.php
View file @
340cd57c
...
...
@@ -214,22 +214,22 @@ class Remark extends Basic
$pagesize
=
15
;
$user_id
=
$params
[
'user_id'
];
$
UPhoneFollowP
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$
s_phone_follow_u
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
// 查询电话跟进数据
$
UPhoneFollowPp_res
=
$UPhoneFollowP
p
->
select_useraction_search
(
$user_id
,
$searchdate
);
$
s_phone_follow_up_res
=
$s_phone_follow_u
p
->
select_useraction_search
(
$user_id
,
$searchdate
);
foreach
(
$
UPhoneFollowP
p_res
as
$k
=>
$v
)
{
foreach
(
$
s_phone_follow_u
p_res
as
$k
=>
$v
)
{
$table
=
new
AAgents
();
$Agents_res
=
$table
->
Agents_res
(
$v
[
'agent_id'
]);
$
UPhoneFollowP
p_res
[
$k
][
'agentinfo'
]
=
$Agents_res
?
$Agents_res
[
'store_name'
]
.
'-'
.
$Agents_res
[
'name'
]
:
'未知'
;
$
UPhoneFollowP
p_res
[
$k
][
'user_pic'
]
=
AGENTHEADERIMGURL
.
$Agents_res
[
'img'
];
$
UPhoneFollowP
p_res
[
$k
][
'label'
]
=
''
;
$
s_phone_follow_u
p_res
[
$k
][
'agentinfo'
]
=
$Agents_res
?
$Agents_res
[
'store_name'
]
.
'-'
.
$Agents_res
[
'name'
]
:
'未知'
;
$
s_phone_follow_u
p_res
[
$k
][
'user_pic'
]
=
AGENTHEADERIMGURL
.
$Agents_res
[
'img'
];
$
s_phone_follow_u
p_res
[
$k
][
'label'
]
=
''
;
//电话跟进标签
if
(
$v
[
'labels_id'
])
{
$table
=
new
ULabels
();
$table_res
=
$table
->
get_labelsname
(
$v
[
'labels_id'
]);
$
UPhoneFollowP
p_res
[
$k
][
'label'
]
=
$table_res
[
0
][
'name'
];
$
s_phone_follow_u
p_res
[
$k
][
'label'
]
=
$table_res
[
0
][
'name'
];
}
}
...
...
@@ -324,7 +324,7 @@ class Remark extends Basic
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_info'
=>
$user_res
,
'user_date'
=>
$
UPhoneFollowP
p_res
,
'user_date'
=>
$
s_phone_follow_u
p_res
,
'user_history'
=>
$records_result
,
'user_invite_history'
=>
$records_invite_result
,
'user_invite_info'
=>
$user_invite_info
,
...
...
@@ -343,12 +343,12 @@ class Remark extends Basic
$page_num
=
isset
(
$params
[
'pagenum'
])
?
$params
[
'pagenum'
]
:
1
;
$page_size
=
15
;
$
UPhoneFollowP
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$
s_phone_follow_u
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
// 查询电话跟进数据
$
UPhoneFollowPp_res
=
$UPhoneFollowP
p
->
phone_up_list
(
$page_size
,
$page_num
);
$total
=
$
UPhoneFollowP
p
->
phone_up_list_count
();
$
s_phone_follow_up_res
=
$s_phone_follow_u
p
->
phone_up_list
(
$page_size
,
$page_num
);
$total
=
$
s_phone_follow_u
p
->
phone_up_list_count
();
$total
=
intval
(
$total
/
$page_size
)
+
((
$total
%
$page_size
==
0
)
?
0
:
1
);
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_date'
=>
$
UPhoneFollowP
p_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_date'
=>
$
s_phone_follow_u
p_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
}
...
...
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