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
f7dffdef
Commit
f7dffdef
authored
Aug 24, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签
parent
ce03548d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+8
-5
No files found.
application/api_broker/controller/HomePageLog.php
View file @
f7dffdef
...
...
@@ -3,6 +3,7 @@
namespace
app\api_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\model\AAgents
;
use
app\model\GHouses
;
...
...
@@ -90,8 +91,8 @@ class HomePageLog extends Basic
$order
=
"f.id desc"
;
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
[],
$where_
,
""
);
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
[],
$where_
,
""
);
$clientService
=
new
ClientService
();
foreach
(
$result
as
$key
=>
$value
)
{
$agent_params
=
[];
$agent_params
[
"a.id"
]
=
$value
[
'agent_id'
];
...
...
@@ -103,10 +104,12 @@ class HomePageLog extends Basic
$result
[
$key
][
'store_name'
]
=
$res_a
[
0
][
'store_name'
];
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$ser
=
new
UserExpiredTimeService
();
$res
=
$ser
->
getExpiredTimeByUser
(
$value
[
'user_id'
]);
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$res
?
0
:
1
;
$ser
=
new
UserExpiredTimeService
();
$res
=
$ser
->
getExpiredTimeByUser
(
$value
[
'user_id'
]);
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$res
?
0
:
1
;
$is_show
=
$clientService
->
dialTotal
(
$value
[
"user_id"
]);
$result
[
$key
][
'sign_call'
]
=
$is_show
?
0
:
1
;
}
$count
=
$this
->
uPhoneFollowUpModel
->
getSearchCount
(
$where_
);
...
...
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