Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
e6a76b73
Commit
e6a76b73
authored
Mar 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all_user
parent
a233dbf6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Users.php
application/model/Users.php
+14
-0
No files found.
application/model/Users.php
View file @
e6a76b73
...
...
@@ -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
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment