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
aa781485
Commit
aa781485
authored
Feb 23, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户搜索输出字段限制
parent
6df13096
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
0 deletions
+90
-0
Broker.php
application/api_broker/controller/Broker.php
+69
-0
route.php
application/route.php
+1
-0
76d55f84497cbeadfc614c1b1b62fc.php
runtime/cache/36/76d55f84497cbeadfc614c1b1b62fc.php
+5
-0
1d8d98fa883098f34a4d156f8bc495.php
runtime/cache/71/1d8d98fa883098f34a4d156f8bc495.php
+5
-0
8dcd905ff64fb160e2d40d1dfb2c42.php
runtime/cache/8f/8dcd905ff64fb160e2d40d1dfb2c42.php
+5
-0
6c828583c5c6160e8acfee88ba1590.php
runtime/cache/d8/6c828583c5c6160e8acfee88ba1590.php
+5
-0
No files found.
application/api_broker/controller/Broker.php
View file @
aa781485
...
@@ -167,8 +167,10 @@ class Broker extends Basic
...
@@ -167,8 +167,10 @@ class Broker extends Basic
$user_res
=
$user
->
where
(
'user_nick|user_phone'
,
'like'
,
"%
$phone_or_name
%"
)
$user_res
=
$user
->
where
(
'user_nick|user_phone'
,
'like'
,
"%
$phone_or_name
%"
)
->
where
(
'create_time'
,
'< time'
,
$Two_days_ago
)
//小于两天前,即排除48小时内受保护的客户
->
where
(
'create_time'
,
'< time'
,
$Two_days_ago
)
//小于两天前,即排除48小时内受保护的客户
->
whereOr
(
'agent_id'
,
$user_id
)
->
whereOr
(
'agent_id'
,
$user_id
)
->
limit
(
$pagesize
)
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
page
(
$pagenum
)
->
field
(
'id,user_nick,user_phone'
)
->
select
();
->
select
();
$total
=
$user
->
where
(
'user_nick|user_phone'
,
'like'
,
"%
$phone_or_name
%"
)
$total
=
$user
->
where
(
'user_nick|user_phone'
,
'like'
,
"%
$phone_or_name
%"
)
->
where
(
'create_time'
,
'< time'
,
$Two_days_ago
)
->
where
(
'create_time'
,
'< time'
,
$Two_days_ago
)
...
@@ -186,4 +188,70 @@ class Broker extends Basic
...
@@ -186,4 +188,70 @@ class Broker extends Basic
return
$this
->
response
(
"101"
,
"失败!"
);
return
$this
->
response
(
"101"
,
"失败!"
);
}
}
}
}
/**
* 客户动态展示加搜索加客户详情
* @return \think\Response
*/
public
function
useraction_search
()
{
$params
=
$this
->
params
;
/*$params['user_id'] ='1';
$params['searchdate'] ='跟进内容';*/
if
(
!
isset
(
$params
[
'user_id'
]))
{
return
$this
->
response
(
"300"
,
"参数不全"
,
[
'remote_groupid'
=>
''
]);
}
$searchdate
=
$params
[
'searchdate'
];
$pagenum
=
isset
(
$params
[
'pagenum'
])
?
$params
[
'pagenum'
]
:
1
;
$pagesize
=
15
;
$user_id
=
$params
[
'user_id'
];
$UPhoneFollowPp
=
new
UPhoneFollowPp
();
// 查询数据集
if
(
$searchdate
){
$UPhoneFollowPp_res
=
$UPhoneFollowPp
->
where
(
'user_id'
,
$user_id
)
->
where
(
'content'
,
$searchdate
)
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
select
();
$total
=
$UPhoneFollowPp
->
where
(
'user_id'
,
$user_id
)
->
where
(
'content'
,
$searchdate
)
->
count
();
}
else
{
$UPhoneFollowPp_res
=
$UPhoneFollowPp
->
where
(
'user_id'
,
$user_id
)
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
select
();
$total
=
$UPhoneFollowPp
->
where
(
'user_id'
,
$user_id
)
->
count
();
}
$total
=
intval
(
$total
/
$pagesize
)
+
((
$total
%
$pagesize
==
0
)
?
0
:
1
);
/*dump($total);
var_dump($user_res);
exit;*/
if
(
$UPhoneFollowPp_res
)
{
$user
=
new
Users
();
// 查询数据集
$user_res
=
$user
->
where
(
'id'
,
$user_id
)
->
find
();
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_info'
=>
$user_res
,
'user_date'
=>
$UPhoneFollowPp_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
}
else
{
return
$this
->
response
(
"101"
,
"失败!"
);
}
}
}
}
\ No newline at end of file
application/route.php
View file @
aa781485
...
@@ -228,6 +228,7 @@ Route::group('broker', [
...
@@ -228,6 +228,7 @@ Route::group('broker', [
'labelEdit'
=>
[
'api_broker/label/index'
,[
'method'
=>
'get|post'
]],
//编辑标签
'labelEdit'
=>
[
'api_broker/label/index'
,[
'method'
=>
'get|post'
]],
//编辑标签
'getLabelsList'
=>
[
'api_broker/label/getLabelsList'
,[
'method'
=>
'get'
]],
//标签列表
'getLabelsList'
=>
[
'api_broker/label/getLabelsList'
,[
'method'
=>
'get'
]],
//标签列表
'add_phone_follow_up'
=>
[
'api_broker/broker/add_phone_follow_up'
,[
'method'
=>
'get|post'
]],
//新增-客户电话跟进
'add_phone_follow_up'
=>
[
'api_broker/broker/add_phone_follow_up'
,[
'method'
=>
'get|post'
]],
//新增-客户电话跟进
'useraction_search'
=>
[
'api_broker/broker/useraction_search'
,[
'method'
=>
'get|post'
]],
//新增-客户电话跟进
'user_search'
=>
[
'api_broker/broker/user_search'
,[
'method'
=>
'get|post'
]],
//客户搜索
'user_search'
=>
[
'api_broker/broker/user_search'
,[
'method'
=>
'get|post'
]],
//客户搜索
'agentUserTb'
=>
[
'api_broker/Client/agentUserTb'
,
[
'method'
=>
'get'
]
],
//客户列表
'agentUserTb'
=>
[
'api_broker/Client/agentUserTb'
,
[
'method'
=>
'get'
]
],
//客户列表
'bindAXB'
=>
[
'api_broker/CellPhone/bindAXB'
,
[
'method'
=>
'post'
]
],
//隐私号码
'bindAXB'
=>
[
'api_broker/CellPhone/bindAXB'
,
[
'method'
=>
'post'
]
],
//隐私号码
...
...
runtime/cache/36/76d55f84497cbeadfc614c1b1b62fc.php
0 → 100644
View file @
aa781485
<?php
//000000000000
exit
();
?>
s:36:"86a953c0-baf4-11e7-8d16-b9611e223e5e";
\ No newline at end of file
runtime/cache/71/1d8d98fa883098f34a4d156f8bc495.php
0 → 100644
View file @
aa781485
<?php
//000000000000
exit
();
?>
i:1517210994;
\ No newline at end of file
runtime/cache/8f/8dcd905ff64fb160e2d40d1dfb2c42.php
0 → 100644
View file @
aa781485
<?php
//000000000000
exit
();
?>
i:5184000;
\ No newline at end of file
runtime/cache/d8/6c828583c5c6160e8acfee88ba1590.php
0 → 100644
View file @
aa781485
<?php
//000000000000
exit
();
?>
s:130:"YWMtM3qCFgTGEeiq48OmjaoPWwAAAAAAAAAAAAAAAAAAAAGGqVPAuvQR540WuWEeIj5eAgMAAAFhQNKIogBPGgCgBPFRepsGUeewmkWAwIW9ScggRB9YqETjARTSkU5hXg";
\ No newline at end of file
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