Commit b3176c67 authored by zhuwei's avatar zhuwei

1

parent 1f37bc8c
...@@ -52,7 +52,6 @@ class Performance extends Basic ...@@ -52,7 +52,6 @@ class Performance extends Basic
$end_day = !empty($params["end_day"]) ? $params["end_day"] : date("Y-m-d", time()); $end_day = !empty($params["end_day"]) ? $params["end_day"] : date("Y-m-d", time());
$start_day = !empty($params["start_day"]) ? $params["start_day"] : date("Y-m-01", time()); $start_day = !empty($params["start_day"]) ? $params["start_day"] : date("Y-m-01", time());
$list = $this->service_->totalAgent($params["agent_id"], $params["type"], $start_day, $end_day, $params["site_id"]); $list = $this->service_->totalAgent($params["agent_id"], $params["type"], $start_day, $end_day, $params["site_id"]);
$all_performance_total = $all_official_receipts_total = 0; $all_performance_total = $all_official_receipts_total = 0;
foreach ($list as $key => $value) { foreach ($list as $key => $value) {
......
...@@ -71,7 +71,7 @@ class PerformanceService ...@@ -71,7 +71,7 @@ class PerformanceService
if (count($agent_info) > 0) { if (count($agent_info) > 0) {
$agent_info = $agent_info[0]; $agent_info = $agent_info[0];
} }
// dump($agent_info);exit;
$where_ = []; $where_ = [];
$where_['d.site_id'] = $site_id; $where_['d.site_id'] = $site_id;
$where_['a.total_time'] = array( 'between', array( $yesterday, $end_day ) ); $where_['a.total_time'] = array( 'between', array( $yesterday, $end_day ) );
......
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