Commit 5299f449 authored by zhuwei's avatar zhuwei

1

parent f09c69a2
...@@ -337,11 +337,13 @@ class OperationData extends Basic ...@@ -337,11 +337,13 @@ class OperationData extends Basic
} }
$order = 'create_time DESC'; $order = 'create_time DESC';
// 新增客户数 $return = $this->userModel->userInviteNum($field,$where,$group,$order);
$addUserNum = $this->userModel->userInviteNum($field,$where,$group,$order); if($return){
// dump($addUserNum); foreach ($return as $key => $v) {
$return[$key]['create_time'] = date('Y-m-d', strtotime($v['create_time']));
return $this->response(200, 'success', $addUserNum); }
}
return $this->response(200, 'success', $return);
} }
...@@ -353,7 +355,8 @@ class OperationData extends Basic ...@@ -353,7 +355,8 @@ class OperationData extends Basic
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$params = $this->params;
$params = $this->params;//time_start time_end
$return = ['上海'=>[ $return = ['上海'=>[
[ 'time' => '2019-10-10 - 2019-10-10', 'people_num' => 123,'performanceSum' => 123, 'real_performanceSum' => 123 ], [ 'time' => '2019-10-10 - 2019-10-10', 'people_num' => 123,'performanceSum' => 123, 'real_performanceSum' => 123 ],
[ 'time' => '2019-10-10 - 2019-10-10', 'people_num' => 123,'performanceSum' => 123, 'real_performanceSum' => 123 ], [ 'time' => '2019-10-10 - 2019-10-10', 'people_num' => 123,'performanceSum' => 123, 'real_performanceSum' => 123 ],
......
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