Commit e6a76b73 authored by hujun's avatar hujun

all_user

parent a233dbf6
......@@ -354,4 +354,18 @@ class Users extends Model
{
return db('u_users')->update($conditions);
}
public function all_user($params='',$pagesize,$pagenum)
{
return db('u_users')
->where($params)
->order('id desc')
//->where('user_nick|user_phone','like',"%$phone_or_name%")
//->where('create_time','< time',$Two_days_ago)//小于两天前,即排除48小时内受保护的客户
->limit($pagesize)
->page($pagenum)
->field('id as user_id,sex,user_nick,user_phone,user_status,agent_id,create_time')
->select();
}
}
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