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
81e653b7
Commit
81e653b7
authored
Nov 02, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
站点的客户
parent
38d7e40f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
User.php
application/api_broker/controller/User.php
+8
-1
No files found.
application/api_broker/controller/User.php
View file @
81e653b7
...
...
@@ -146,10 +146,17 @@ class User extends Basic
$time_now
=
date
(
'Y-m-d H:i:s'
);
$conditions
[
'protect_time'
]
=
array
(
'lt'
,
$time_now
);
}
#默认显示经纪人所在站点的客户
#站点的客户
if
(
isset
(
$params
[
'site_id'
])
)
{
#根据前端选择站点客户
$conditions
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$params
[
'site_id'
]
.
'%'
];
}
else
{
#前端不穿站点参数就默认显示经纪人所在站点的客户
$conditions
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
}
}
}
$field
=
"id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip,user_label,source_intro"
;
$userList
=
$this
->
userModel
->
selectUserList
(
$field
,
$conditions
,
$pageNo
,
$pageSize
,
"id desc"
);
...
...
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