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
64911934
Commit
64911934
authored
Aug 29, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户浏览商铺记录
parent
633b82f4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
0 deletions
+77
-0
LookShop.php
application/api_broker/controller/LookShop.php
+25
-0
LookShopService.php
application/api_broker/service/LookShopService.php
+26
-0
TLookShopUser.php
application/model/TLookShopUser.php
+25
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/LookShop.php
View file @
64911934
...
@@ -159,4 +159,28 @@ class LookShop extends Basic
...
@@ -159,4 +159,28 @@ class LookShop extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
}
/**
* 客户浏览记录
* @return \think\Response
*/
public
function
getLookShopList
()
{
$params
=
$this
->
params
;
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$s_look_Shop
=
new
LookShopService
();
$field
=
'a.source,a.create_time,b.buyer_nick,b.buyer_img,c.id as user_id'
;
$conditions
[
'a.source'
]
=
1
;
$result
=
$s_look_Shop
->
getLookShopList
(
$conditions
,
$field
,
$pageNo
,
$pageSize
);
if
(
$result
){
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
return
$this
->
response
(
"101"
,
"暂无数据"
,
[]);
}
}
}
}
\ No newline at end of file
application/api_broker/service/LookShopService.php
View file @
64911934
...
@@ -236,4 +236,29 @@ class LookShopService
...
@@ -236,4 +236,29 @@ class LookShopService
}
}
/**
* 客户浏览记录
* @param $conditions
* @param $field
* @param $pageNo
* @param $pageSize
* @return bool
*/
public
function
getLookShopList
(
$conditions
,
$field
,
$pageNo
,
$pageSize
)
{
$m_look_shop
=
new
TLookShopUser
();
$list
=
$m_look_shop
->
getLookShopList
(
$conditions
,
$field
,
$pageNo
,
$pageSize
);
if
(
!
$list
)
{
return
false
;
}
$count
=
$m_look_shop
->
getLookShopListCount
(
$conditions
,
$field
);
$result
[
"list"
]
=
$list
;
$result
[
"total"
]
=
$count
;
return
$result
;
}
}
}
\ No newline at end of file
application/model/TLookShopUser.php
View file @
64911934
...
@@ -65,4 +65,28 @@ class TLookShopUser extends Model
...
@@ -65,4 +65,28 @@ class TLookShopUser extends Model
->
order
(
"id desc"
)
->
order
(
"id desc"
)
->
select
();
->
select
();
}
}
public
function
getLookShopList
(
$condition
,
$field
,
$pageNo
,
$pageSize
)
{
return
$this
->
db_
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"u_wx_info b"
,
"a.user_id=b.id"
,
"left"
)
->
join
(
"u_users c"
,
"c.buyer_id=b.id"
,
"left"
)
->
where
(
$condition
)
->
page
(
$pageNo
)
->
limit
(
$pageSize
)
->
order
(
"a.id desc"
)
->
select
();
}
public
function
getLookShopListCount
(
$condition
,
$field
)
{
return
$this
->
db_
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"u_wx_info b"
,
"a.user_id=b.id"
,
"left"
)
->
join
(
"u_users c"
,
"c.buyer_id=b.id"
,
"left"
)
->
where
(
$condition
)
->
count
();
}
}
}
\ No newline at end of file
application/route.php
View file @
64911934
...
@@ -925,6 +925,7 @@ Route::group('broker', [
...
@@ -925,6 +925,7 @@ Route::group('broker', [
'getAgentsResidueNumList'
=>
[
'api_broker/LookShop/getAgentsResidueNumList'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumList'
=>
[
'api_broker/LookShop/getAgentsResidueNumList'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumListV2'
=>
[
'api_broker/LookShop/getAgentsResidueNumListV2'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumListV2'
=>
[
'api_broker/LookShop/getAgentsResidueNumListV2'
,
[
'method'
=>
'get'
]],
//经纪人列表
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]],
//设置经纪人的看铺数量
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]],
//设置经纪人的看铺数量
'getLookShopList'
=>
[
'api_broker/LookShop/getLookShopList'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
//首页跟进记录
//首页跟进记录
'userFollowUpList'
=>
[
'api_broker/HomePageLog/userFollowUpList'
,
[
'method'
=>
'post|get'
]],
'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