Commit a6cec67d authored by clone's avatar clone

bug

parent 11ac9d9e
...@@ -99,15 +99,17 @@ class OperationData extends Basic ...@@ -99,15 +99,17 @@ class OperationData extends Basic
// 注册客户数 // 注册客户数
$where = []; $where = [];
$where['create_time'] = $between; $where['registration_time'] = $between;
$where['registration_time'] = array( 'exp', 'is not null' ); $where['status'] = 0;
// $where['registration_time'] = array( 'exp', 'is not null' );
$addUserNum = $this->userModel->getAddUserNumForOperation($where); $addUserNum = $this->userModel->getAddUserNumForOperation($where);
$result["create_user_num"] = isset($addUserNum[0]["num"]) ? $addUserNum[0]["num"] : 0; $result["create_user_num"] = isset($addUserNum[0]["num"]) ? $addUserNum[0]["num"] : 0;
// 登录客户数 // 登录客户数
$where = []; $where = [];
$where['create_time'] = $between; $where['first_login_time'] = $between;
$where['last_login_time'] = array( 'exp', 'is not null' ); $where['status'] = 0;
//$where['last_login_time'] = array( 'exp', 'is not null' );
$addUserNum = $this->userModel->getAddUserNumForOperation($where); $addUserNum = $this->userModel->getAddUserNumForOperation($where);
$result["login_user_num"] = isset($addUserNum[0]["num"]) ? $addUserNum[0]["num"] : 0; $result["login_user_num"] = isset($addUserNum[0]["num"]) ? $addUserNum[0]["num"] : 0;
return $this->response(200, 'success', $result); return $this->response(200, 'success', $result);
...@@ -181,8 +183,6 @@ class OperationData extends Basic ...@@ -181,8 +183,6 @@ class OperationData extends Basic
} }
/** /**
* 获取部门列表 * 获取部门列表
* @return \think\Response * @return \think\Response
......
...@@ -907,7 +907,7 @@ class Users extends Model ...@@ -907,7 +907,7 @@ class Users extends Model
->field($field) ->field($field)
->where($params) ->where($params)
->select(); ->select();
//dump($this->getLastSql()); // dump($this->getLastSql());
return $result; return $result;
} }
......
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