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
54f3162a
Commit
54f3162a
authored
May 23, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页跟进
parent
236d1c0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+77
-0
route.php
application/route.php
+3
-0
No files found.
application/api_broker/controller/HomePageLog.php
0 → 100644
View file @
54f3162a
<?php
namespace
app\app_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\model\UPhoneFollowPp
;
use
think\Request
;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/5/23
* Time : 上午11:34
* Intro: 首页客户跟进和商铺跟进列表
*/
class
HomePageLog
extends
Basic
{
private
$uPhoneFollowUpModel
;
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
();
}
/**
* 首页客户跟进
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
userFollowUpList
()
{
$params
=
$this
->
params
;
$params
=
array
(
"start_time"
=>
time
(),
"end_time"
=>
time
()
.
" 23:59:59"
,
"name_or_phone"
=>
"li"
,
"search_content"
=>
"111"
,
"pageNo"
=>
1
,
"pageSize"
=>
15
);
if
(
empty
(
$params
[
'start_time'
])
||
empty
(
$params
[
'end_time'
]))
{
return
$this
->
response
(
"101"
,
'请选择时间'
);
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$field
=
"f.id,f.user_id,f.agent_id,f.type,f.content,f.create_time,a.name,a.img,b.store_name"
;
if
(
!
empty
(
$params
[
"search_content"
]))
{
$where_
[
"f.content"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'search_content'
])
.
"%"
);
}
if
(
!
empty
(
$params
[
"start_time"
])
&&
!
empty
(
$params
[
"end_time"
]))
{
$where_
[
"f.create_time"
]
=
array
(
'between'
,
array
(
$params
[
"start_time"
],
$params
[
"end_time"
]
));
}
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
$where_
[
"u.user_phone|u.user_name"
]
=
array
(
"like"
,
'%name_or_phone%'
);
}
$join
=
[
[
'a_agents a'
,
'a.id=f.agent_id'
,
'left'
],
[
'u_users u'
,
'u.id=f.user_id'
,
'left'
],
[
'a_store b'
,
'b.id=a.store_id'
,
'left'
],
];
$order
=
"f.id desc"
;
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where_
,
""
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
}
\ No newline at end of file
application/route.php
View file @
54f3162a
...
...
@@ -442,6 +442,9 @@ Route::group('broker', [
'getAgentsResidueNumList'
=>
[
'api_broker/LookShop/getAgentsResidueNumList'
,
[
'method'
=>
'get'
]
],
//剩余铺数列表
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]
],
//设置经纪人的看铺数量
//首页跟进记录
'userFollowUpList'
=>
[
'api_broker/HomePageLog/userFollowUpList'
,
[
'method'
=>
'post|get'
]
],
//设置经纪人的看铺数量
]);
...
...
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