Commit 1777244f authored by zhuwei's avatar zhuwei

1

parent 23977058
......@@ -157,10 +157,7 @@ class UserSiteService
*/
public function moveUserSiteCount(){
$params[] = ['EXP', 'site_ids IS NOT NULL '];
$user_count = $this->m_user->moveUserSiteCount($params);
return $user_count;
}
......
......@@ -499,15 +499,19 @@ class Users extends Model
{
$where_ = [];
if (isset($params["agent_id"])) {
$where_["agent_id"] = $params["agent_id"];
$where_["b.agent_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["create_time"] = $params["create_time"];
$start_time = $params["create_time"][1][0];
$end_time =$params["create_time"][1][1];
$where_[] = ['EXP', "b.create_time BETWEEN '{$start_time}' AND '{$end_time}' OR b.update_time BETWEEN '{$start_time}' AND '{$end_time}' "];
}
return Db::table($this->table)
->alias("a")
->join("u_user_agent b", "b.user_id=a.id", "left")
->where($where_)
->count();
}
/**
......
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