Commit a6cec67d authored by clone's avatar clone

bug

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