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
a770642e
Commit
a770642e
authored
Nov 16, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩统计
parent
aa3030db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
route.php
application/route.php
+5
-4
ResultsSummaryNewTask.php
application/task/controller/ResultsSummaryNewTask.php
+25
-0
No files found.
application/route.php
View file @
a770642e
...
...
@@ -474,10 +474,11 @@ Route::group('task', [
'saveLookShop'
=>
[
'task/SaveLookShopHistoryTask/saveLookShop'
,
[
'method'
=>
'get'
]
],
//保存看铺记录
'totalAgentResults_new'
=>
[
'task/ResultsSummaryTask/totalAgentResults'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResults'
=>
[
'task/ResultsSummaryNewTask/totalAgentResults'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResultsByTime'
=>
[
'task/ResultsSummaryNewTask/totalAgentResultsByTime'
,
[
'method'
=>
'get'
]
],
//业绩统计
'updateTotalByAgentId'
=>
[
'task/ResultsSummaryNewTask/updateTotalByAgentId'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResults_new'
=>
[
'task/ResultsSummaryTask/totalAgentResults'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResults'
=>
[
'task/ResultsSummaryNewTask/totalAgentResults'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResultsByTime'
=>
[
'task/ResultsSummaryNewTask/totalAgentResultsByTime'
,
[
'method'
=>
'get'
]
],
//业绩统计
'updateTotalByAgentId'
=>
[
'task/ResultsSummaryNewTask/updateTotalByAgentId'
,
[
'method'
=>
'get'
]
],
//业绩统计
'totalAgentResultsByYesterday'
=>
[
'task/ResultsSummaryNewTask/totalAgentResultsByYesterday'
,
[
'method'
=>
'get'
]
],
//业绩统计
'rongBilledInformUrl'
=>
[
'task/PrivacyNumber/rongBilledInformUrl'
,
[
'method'
=>
'post | get'
]
],
//隐私号码回调[话单通知]
...
...
application/task/controller/ResultsSummaryNewTask.php
View file @
a770642e
...
...
@@ -106,6 +106,31 @@ class ResultsSummaryNewTask
unset
(
$this
->
payLogModel
);
}
public
function
totalAgentResultsByYesterday
()
{
set_time_limit
(
0
);
// 取消脚本运行时间的超时上限
$total_time
=
date
(
"Y-m-d"
,
strtotime
(
"-1 day"
));
$total
=
$this
->
agentsModel
->
getAgentsCountByTask
();
$pageSize
=
20
;
$pageTotal
=
ceil
(
$total
/
$pageSize
);
for
(
$pageNo
=
1
;
$pageNo
<=
$pageTotal
;
$pageNo
++
)
{
$resultArr
=
$this
->
agentsModel
->
getAgentsListByTask
(
$pageNo
,
$pageSize
,
"id,store_id,district_id"
);
$this
->
executeTotal
(
$resultArr
,
$total_time
);
unset
(
$resultArr
);
}
unset
(
$this
->
agentsModel
);
unset
(
$this
->
tAgentTotalModel
);
unset
(
$this
->
houseModel
);
unset
(
$this
->
userModel
);
unset
(
$this
->
bargainModel
);
unset
(
$this
->
reportModel
);
unset
(
$this
->
marchInModel
);
unset
(
$this
->
payLogModel
);
}
/**
...
...
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