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
aa683e01
Commit
aa683e01
authored
Nov 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人职称列表
parent
b66ab852
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
Broker.php
application/index/controller/Broker.php
+47
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Broker.php
View file @
aa683e01
...
@@ -15,6 +15,7 @@ use app\api_broker\service\PushMessageService;
...
@@ -15,6 +15,7 @@ use app\api_broker\service\PushMessageService;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\ABindingDevice
;
use
app\model\ABindingDevice
;
use
app\model\AStore
;
use
app\model\Evaluate
;
use
app\model\Evaluate
;
use
app\model\GHousesToAgents
;
use
app\model\GHousesToAgents
;
use
think\Session
;
use
think\Session
;
...
@@ -748,4 +749,49 @@ class Broker extends Basic
...
@@ -748,4 +749,49 @@ class Broker extends Basic
return
$this
->
response
(
101
,
'内部错误:'
.
$e
->
getMessage
());
return
$this
->
response
(
101
,
'内部错误:'
.
$e
->
getMessage
());
}
}
}
}
/**
* 经纪人职称列表
*
* @return \think\Response
*/
public
function
agentPositionList
()
{
$msg
=
""
;
$code
=
200
;
$data
=
[];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$where
[
'status'
]
=
0
;
if
(
!
empty
(
$this
->
params
[
'position'
]))
{
$where
[
'position'
]
=
$this
->
params
[
'position'
];
}
if
(
!
empty
(
$this
->
params
[
'name'
]))
{
$where
[
'name'
]
=
$this
->
params
[
'name'
];
}
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
$where
[
'phone'
]
=
$this
->
params
[
'phone'
];
}
try
{
$m_agent
=
new
AAgents
();
$m_store
=
new
AStore
();
$list
=
$m_agent
->
getList
(
$pageNo
,
$pageSize
,
'id desc'
,
'id,phone,name,position,store_id'
,
$where
);
foreach
(
$list
as
$k
=>
$v
)
{
$list
[
$k
][
'store_name'
]
=
$m_store
->
getStoreKeyById
(
'store_name'
,
[
'id'
=>
$v
[
'store_id'
]]);
}
$data
[
'list'
]
=
$list
;
$data
[
'total'
]
=
$m_agent
->
getTotal
(
$where
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
}
\ No newline at end of file
application/route.php
View file @
aa683e01
...
@@ -111,6 +111,7 @@ Route::group('index', [
...
@@ -111,6 +111,7 @@ Route::group('index', [
'getCurrentCity'
=>
[
'index/broker/getCurrentCity'
,
[
'method'
=>
'GET'
]],
//获取所属城市
'getCurrentCity'
=>
[
'index/broker/getCurrentCity'
,
[
'method'
=>
'GET'
]],
//获取所属城市
'settingCity'
=>
[
'index/broker/settingCity'
,
[
'method'
=>
'POST'
]],
//设置所属城市
'settingCity'
=>
[
'index/broker/settingCity'
,
[
'method'
=>
'POST'
]],
//设置所属城市
'getAgentGroupSite'
=>
[
'index/broker/getAgentGroupSite'
,
[
'method'
=>
'GET'
]],
//获得经纪人站点
'getAgentGroupSite'
=>
[
'index/broker/getAgentGroupSite'
,
[
'method'
=>
'GET'
]],
//获得经纪人站点
'agentPositionList'
=>
[
'index/broker/agentPositionList'
,
[
'method'
=>
'GET'
]],
//经纪人职称列表
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]],
//批量修改盘方
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]],
//批量修改盘方
'transformLandlord'
=>
[
'index/houses/transformLandlord'
,
[
'method'
=>
'post'
]],
//转换房东手机号
'transformLandlord'
=>
[
'index/houses/transformLandlord'
,
[
'method'
=>
'post'
]],
//转换房东手机号
'lockHouse'
=>
[
'index/houses/lockHouse'
,
[
'method'
=>
'post'
]],
//锁盘
'lockHouse'
=>
[
'index/houses/lockHouse'
,
[
'method'
=>
'post'
]],
//锁盘
...
...
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