Commit b5a06335 authored by clone's avatar clone

1

parent afd73158
......@@ -242,9 +242,9 @@ class ResultsSummaryNewTask
}
/* public function test()
/* public function test()
{
$params = $this->selectTotal(1, 1, 1, "2018-02-02", "2018-03-15");
$params = $this->selectTotal(1, 1, 1, "2019-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 = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment