Commit d9506d69 authored by zhuwei's avatar zhuwei

pc后台业绩修改

parent acae14ae
......@@ -77,10 +77,8 @@ class Performance extends Basic
$end_day = !empty($params["end_day"]) ? $params["end_day"] : date("Y-m-d", time());
$father_id = !empty($params["father_id"]) ? $params["father_id"] : '' ;
//todo 业绩查询目前分三种情况
$search_time_type = $this->getSearchTimeType($start_day,$end_day);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id,$search_time_type);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id);
//dump($list);
if (count($list) > 0) {
$result["list"] = $list['list'];
......@@ -105,9 +103,8 @@ class Performance extends Basic
header('Access-Control-Allow-Origin:*');
$params = $this->params;
// $params = array(
// "type" => 2, //1表示个人业绩排行 2门店 3区域
// "father_id" => 4,
// // "start_day" =>"",
// "start_day" => '2018-08-08',
// "end_day" => '2018-08-08',
// );
$params["type"] = 2;
......@@ -118,11 +115,8 @@ class Performance extends Basic
$start_day = !empty($params["start_day"]) ? $params["start_day"] : date("Y-m-01", time());
$father_id = !empty($params["father_id"]) ? $params["father_id"] : '' ;
//todo 业绩查询目前分三种情况
$search_time_type = $this->getSearchTimeType($start_day,$end_day);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id,$search_time_type);
//dump($list);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id);
if (count($list) > 0) {
$result["list"] = $list['list'];
$result["total"] = $list['total'];
......@@ -161,10 +155,7 @@ class Performance extends Basic
$start_day = !empty($params["start_day"]) ? $params["start_day"] : date("Y-m-01", time());
$father_id = !empty($params["father_id"]) ? $params["father_id"] : '' ;
//todo 业绩查询目前分三种情况
$search_time_type = $this->getSearchTimeType($start_day,$end_day);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id,$search_time_type);
$list = $this->service_->totalAgent($params["type"], $end_day, $start_day,$pageNo,$pageSize,$father_id);
//dump($list);
if (count($list) > 0) {
$result["list"] = $list['list'];
......
......@@ -491,7 +491,7 @@ Route::group('broker', [
'agentPerformanceBySearch' => [ 'api_broker/Performance/agentPerformanceBySearch', [ 'method' => 'get' ] ],
'orderNoList' => [ 'api_broker/Performance/orderNoList', [ 'method' => 'get' ] ],
'storePerformanceBySearch' => [ 'api_broker/Performance/storePerformanceBySearch', [ 'method' => 'get' ] ],
'storeOrAgentSort' => [ 'api_broker/Performance/storeOrAgentSort', [ 'method' => 'get' ] ],
'storeOrAgentSort' => [ 'api_broker/Performance/storeOrAgentSort', [ 'method' => 'get|post' ] ],
'weekWorkImg' => [ 'api_broker/Statement/weekWorkImg', [ 'method' => 'post' ] ], //生成周报和日报图片
'setReportContent' => [ 'api_broker/Statement/setReportContent', [ 'method' => 'get|post' ] ], //保存日报周报四个字段
......
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