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
9a04ca8d
Commit
9a04ca8d
authored
Sep 25, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表排除纯房东
parent
2d357651
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
User.php
application/api_broker/controller/User.php
+6
-3
Member.php
application/index/controller/Member.php
+3
-0
No files found.
application/api_broker/controller/User.php
View file @
9a04ca8d
...
...
@@ -578,11 +578,12 @@ class User extends Basic
}
//跟进人名字
if
(
!
empty
(
$this
->
params
[
'remark_name'
]))
{
if
(
mb_strlen
(
$this
->
params
[
'remark_name'
])
<
2
)
{
//
return $this->response(101, '名字长度不足2位');
return
$this
->
response
(
101
,
'名字长度不足2位'
);
}
$agent_where
[
'
a.
name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'remark_name'
]
.
'%'
];
$agent_where
[
'name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'remark_name'
]
.
'%'
];
}
//跟进人手机号
...
...
@@ -617,7 +618,7 @@ class User extends Basic
}
if
(
!
empty
(
$agent_where
))
{
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
$agent_id_arr
=
$m_agent
->
getAgentById
(
'id'
,
$agent_where
);
if
(
empty
(
$agent_id_arr
))
{
...
...
@@ -641,6 +642,8 @@ class User extends Basic
$where
[
'a.id'
]
=
[
'lt'
,
$params
[
'id'
]
];
$order
=
'a.id desc'
;
}
// dump($where);exit;
$field
=
'a.id,a.user_id,b.user_nick,b.user_nick,b.agent_id,b.vip,b.create_time'
;
$model
=
new
UPhoneFollowPp
();
$model_res
=
$model
->
getLastOrNextUserIDPhoneFollowP
(
$where
,
$field
,
$limit
=
1
,
$order
);
...
...
application/index/controller/Member.php
View file @
9a04ca8d
...
...
@@ -288,6 +288,9 @@ class Member extends Basic{
$where
[
'a.referrer_source'
]
=
10
;
}
//'客户列表' 需要排除排除纯房东客户
$where
[
'a.user_label'
]
=
array
(
"neq"
,
2
);
$fields
=
'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'
;
...
...
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