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
b5a06335
Commit
b5a06335
authored
Jun 30, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
afd73158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
ResultsSummaryNewTask.php
application/task/controller/ResultsSummaryNewTask.php
+17
-4
No files found.
application/task/controller/ResultsSummaryNewTask.php
View file @
b5a06335
...
...
@@ -242,9 +242,9 @@ class ResultsSummaryNewTask
}
/*
public function test()
/*
public function test()
{
$params = $this->selectTotal(1, 1, 1, "201
8-02-02", "2018-03-15"
);
$params = $this->selectTotal(1, 1, 1, "201
9-06-30", "2019-06-31",10001
);
$this->tAgentTotalModel->addTotal($params);
// dump($params);
}*/
...
...
@@ -296,8 +296,11 @@ class ResultsSummaryNewTask
$result_arr
[
"bargain_sum"
]
=
$bargainSum
[
0
][
"num"
];
//电话跟进数
//$uFollowModel = new UPhoneFollowUp($site_id);
$uFollowModel
=
new
UPhoneFollowUpTemporary
(
$site_id
);
if
(
!
$this
->
verifyTime
(
$end_total_time
)){
$uFollowModel
=
new
UPhoneFollowUpTemporary
(
$site_id
);
}
else
{
$uFollowModel
=
new
UPhoneFollowUp
(
$site_id
);
}
$followUp
=
$uFollowModel
->
getFollowTotal
(
$params
);
$result_arr
[
"followUp_sum"
]
=
$followUp
;
...
...
@@ -307,6 +310,16 @@ class ResultsSummaryNewTask
}
private
function
verifyTime
(
$end_total_time
){
$checkDayStr
=
date
(
'Y-m-d'
,
time
());
$timeStart
=
strtotime
(
$checkDayStr
);
$timeEnd
=
strtotime
(
$end_total_time
);
if
(
$timeStart
>=
$timeEnd
)
{
return
true
;
}
return
false
;
}
private
function
binAgentModel
(
$agent_id
,
$district_id
,
$store_id
,
$result_arr
,
$start_total_time
)
{
$params
=
[];
...
...
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