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
07c3c7c2
Commit
07c3c7c2
authored
May 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询经纪人
parent
2f640add
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
16 deletions
+5
-16
Broker.php
application/api/controller/Broker.php
+3
-1
AAgents.php
application/model/AAgents.php
+1
-14
route.php
application/route.php
+1
-1
No files found.
application/api/controller/Broker.php
View file @
07c3c7c2
...
...
@@ -46,7 +46,9 @@ class Broker extends Basic{
$agent_client
=
$agents
->
getAgentClient
(
$fields
,
[
'c.id'
=>
$this
->
userId
]);
}
$list
=
$agents
->
getUser
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
''
,
$params
[
'house_id'
]);
$where
[
'c.houses_id'
]
=
$params
[
'house_id'
];
$where
[
'c.is_del'
]
=
0
;
$list
=
$agents
->
getUser
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
$where
);
if
(
!
empty
(
$agent_client
[
'id'
]))
{
array_unshift
(
$list
,
$agent_client
);
...
...
application/model/AAgents.php
View file @
07c3c7c2
...
...
@@ -719,17 +719,7 @@ class AAgents extends BaseModel
*/
public
function
getUser
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$params
,
$house_id
=
''
)
{
if
(
$house_id
==
''
)
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'u_evaluate b'
,
'a.id = b.agents_id'
,
'left'
)
->
where
(
$params
)
->
group
(
'a.id'
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
}
else
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'u_evaluate b'
,
'a.id = b.agents_id'
,
'left'
)
->
join
(
'g_houses_to_agents c'
,
'a.id=c.agents_id'
,
'left'
)
->
where
(
'c.houses_id'
,
$house_id
)
...
...
@@ -742,9 +732,6 @@ class AAgents extends BaseModel
->
select
();
}
return
$data
;
}
/**
* @param int $pageNo
* @param int $pageSize
...
...
application/route.php
View file @
07c3c7c2
...
...
@@ -203,7 +203,7 @@ Route::group('index', [
'overRuleAttache/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
0
]],
//退款审核-驳回-专员审核
'overRuleManager/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]],
//退款审核-驳回-经理审核
'overRuleMajordomo/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
2
]],
//退款审核-驳回-总监审核
'overRuleCashier/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
3
]],
//退款审核-驳回-
总监
审核
'overRuleCashier/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
3
]],
//退款审核-驳回-
出纳
审核
'bargainInfo'
=>
[
'index/Finance/bargainInfo'
,
[
'method'
=>
'get'
]
],
//获取成交报告详情
'editBargainInfo'
=>
[
'index/Finance/editBargainInfo'
,
[
'method'
=>
'post'
]
],
//修改成交报告佣金
'addBargain'
=>
[
'index/Finance/addBargain'
,
[
'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