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
61ee8b32
Commit
61ee8b32
authored
Aug 01, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
fa3c9174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
Client.php
application/api_broker/controller/Client.php
+12
-7
No files found.
application/api_broker/controller/Client.php
View file @
61ee8b32
...
...
@@ -197,8 +197,17 @@ class Client extends Basic
and ( user_name like '%
{
$params
[
'search'
]
}
%' or user_phone like '%
{
$params
[
'search'
]
}
%' ) "
;
$data
[
'search'
]
=
$params
[
'search'
];
}
$list
=
$table
->
getAgentUserTb
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$clientService
=
new
ClientService
();
foreach
(
$list
as
$k
=>
$v
){
$is_show
=
$clientService
->
dialTotal
(
$v
[
"user_id"
]);
if
(
!
$is_show
)
{
unset
(
$list
[
$k
]);
}
}
$data
[
'list'
]
=
$table
->
getAgentUserTb
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'list'
]
=
array_merge
(
$list
);
$total
=
$table
->
getMyUserCount
(
$where
);
$data
[
'total'
]
=
ceil
(
$total
/
$pageSize
);
$data
[
'page'
]
=
$pageNo
;
...
...
@@ -332,7 +341,7 @@ class Client extends Basic
$user_res
=
$UPhoneFollowPp
->
all_user_search
(
$phone_or_name
,
$pagesize
,
$pagenum
);
$total
=
$UPhoneFollowPp
->
all_user_search_count
(
$phone_or_name
);
}
$clientService
=
new
ClientService
();
if
(
$search_type
!=
'2'
)
{
//全部客户数据处理
foreach
(
$user_res
as
$k
=>
$v
)
{
...
...
@@ -341,10 +350,6 @@ class Client extends Basic
if
(
$user_id
==
$v
[
'agent_id'
])
{
$label
[]
=
'我的'
;
}
$is_show
=
$clientService
->
dialTotal
(
$v
[
"user_id"
]);
if
(
!
$is_show
)
{
unset
(
$user_res
[
$k
]);
}
//无效客户不显示标签
if
(
$v
[
'user_status'
]
!=
-
1
)
{
...
...
@@ -367,7 +372,7 @@ class Client extends Basic
$total
=
intval
(
$total
/
$pagesize
)
+
((
$total
%
$pagesize
==
0
)
?
0
:
1
);
$data
[
'user_date'
]
=
array_merge
(
$user_res
)
;
$data
[
'user_date'
]
=
$user_res
;
$data
[
'pagenum'
]
=
$pagenum
;
$data
[
'total'
]
=
$total
;
$data
[
'search_type'
]
=
$search_type
;
...
...
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