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
cbbc4166
Commit
cbbc4166
authored
Mar 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表
parent
e7e317a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Client.php
application/api_broker/controller/Client.php
+3
-1
No files found.
application/api_broker/controller/Client.php
View file @
cbbc4166
...
...
@@ -126,6 +126,8 @@ class Client extends Basic
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$type
=
$params
[
'type'
]
?
$params
[
'type'
]
:
0
;
//条件
//time_minute_diff 时间差(分)48小时内增加的【拥有经纪人】的客户为--受保护客户
...
...
@@ -137,7 +139,7 @@ class Client extends Basic
// $where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 2880 )
// and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) ";
$where
=
" (agent_id in(0,
{
$params
[
'agent_id'
]
}
) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'
{
$time
}
') > 0 )
and ( user_nick like '%
{
$params
[
'search'
]
}
%' or user_phone like '%
{
$params
[
'search'
]
}
%' )
"
;
and ( user_nick like '%
{
$params
[
'search'
]
}
%' or user_phone like '%
{
$params
[
'search'
]
}
%' )
and user_status="
.
$type
;
$data
[
'search'
]
=
$params
[
'search'
];
}
...
...
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