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
40890ffb
Commit
40890ffb
authored
Jun 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录客户拨打经纪人次数
parent
f275a0ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
11 deletions
+43
-11
Broker.php
application/api/controller/Broker.php
+0
-0
AAgents.php
application/model/AAgents.php
+42
-11
route.php
application/route.php
+1
-0
No files found.
application/api/controller/Broker.php
View file @
40890ffb
This diff is collapsed.
Click to expand it.
application/model/AAgents.php
View file @
40890ffb
...
@@ -312,11 +312,6 @@ class AAgents extends BaseModel
...
@@ -312,11 +312,6 @@ class AAgents extends BaseModel
return
$this
->
save
([
'password'
=>
md5
(
$pwd
)
],
[
'id'
=>
$id
]);
return
$this
->
save
([
'password'
=>
md5
(
$pwd
)
],
[
'id'
=>
$id
]);
}
}
public
function
saveList
()
{
}
/**
/**
* 分页列表
* 分页列表
* @param int $p
* @param int $p
...
@@ -343,13 +338,16 @@ class AAgents extends BaseModel
...
@@ -343,13 +338,16 @@ class AAgents extends BaseModel
return
$data
;
return
$data
;
}
}
/**
/**
* 统计任务获取经纪人列表
* 统计任务获取经纪人列表
*
* @param int $pageNo
* @param int $pageNo
* @param int $pageSize
* @param int $pageSize
* @param string $field
* @param string $field
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getAgentsListByTask
(
$pageNo
=
1
,
$pageSize
=
15
,
$field
=
"id"
)
public
function
getAgentsListByTask
(
$pageNo
=
1
,
$pageSize
=
15
,
$field
=
"id"
)
{
{
...
@@ -358,7 +356,6 @@ class AAgents extends BaseModel
...
@@ -358,7 +356,6 @@ class AAgents extends BaseModel
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
->
select
();
->
select
();
}
}
/**
/**
...
@@ -373,8 +370,12 @@ class AAgents extends BaseModel
...
@@ -373,8 +370,12 @@ class AAgents extends BaseModel
/**
/**
* 批量获取经纪人
* 批量获取经纪人
*
* @param $params
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getAgentsByStoreId
(
$params
)
public
function
getAgentsByStoreId
(
$params
)
{
{
...
@@ -386,7 +387,13 @@ class AAgents extends BaseModel
...
@@ -386,7 +387,13 @@ class AAgents extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
countAgentNum
(
$params
)
public
function
countAgentNum
(
$params
)
{
{
$where_
=
$whereOr_
=
[];
$where_
=
$whereOr_
=
[];
...
@@ -413,7 +420,14 @@ class AAgents extends BaseModel
...
@@ -413,7 +420,14 @@ class AAgents extends BaseModel
}
}
/**
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getAgentsInfoByAgentId
(
$field
,
$params
)
public
function
getAgentsInfoByAgentId
(
$field
,
$params
)
{
{
$where_
=
[];
$where_
=
[];
...
@@ -444,6 +458,13 @@ class AAgents extends BaseModel
...
@@ -444,6 +458,13 @@ class AAgents extends BaseModel
}
}
/**
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getStoreOrDistrict
(
$params
){
public
function
getStoreOrDistrict
(
$params
){
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
"id,name,img"
)
->
field
(
"id,name,img"
)
...
@@ -453,6 +474,14 @@ class AAgents extends BaseModel
...
@@ -453,6 +474,14 @@ class AAgents extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
searchAgentsByKeyword
(
$field
,
$params
)
public
function
searchAgentsByKeyword
(
$field
,
$params
)
{
{
...
@@ -508,13 +537,15 @@ class AAgents extends BaseModel
...
@@ -508,13 +537,15 @@ class AAgents extends BaseModel
->
value
(
'id'
);
->
value
(
'id'
);
}
}
/**
/**
* 根据id检查是否有权限
* 根据id检查是否有权限
*
*
* @param $agents_id
* @param $agents_id
* @param $rule
* @param $rule
* @return mixed
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
agentsAuthIds
(
$agents_id
,
$rule
)
public
function
agentsAuthIds
(
$agents_id
,
$rule
)
{
{
...
...
application/route.php
View file @
40890ffb
...
@@ -264,6 +264,7 @@ Route::group('api', [
...
@@ -264,6 +264,7 @@ Route::group('api', [
'brokerDetail'
=>
[
'api/broker/brokerDetail'
,
[
'method'
=>
'get'
]
],
//经纪人详情
'brokerDetail'
=>
[
'api/broker/brokerDetail'
,
[
'method'
=>
'get'
]
],
//经纪人详情
//post broker
//post broker
'appraiser'
=>
[
'api/broker/appraiser'
,
[
'method'
=>
'post'
]
],
//评价经纪人
'appraiser'
=>
[
'api/broker/appraiser'
,
[
'method'
=>
'post'
]
],
//评价经纪人
'recordCallNum'
=>
[
'api/broker/recordCallNum'
,
[
'method'
=>
'post'
]
],
//记录拨打经纪人号码
//get member
//get member
'logout'
=>
[
'api/member/logout'
,
[
'method'
=>
'get'
]
],
'logout'
=>
[
'api/member/logout'
,
[
'method'
=>
'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