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
e7b8da1f
Commit
e7b8da1f
authored
Mar 26, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取合作反签独家
parent
da4a8436
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+16
-0
OrderLogService.php
application/api_broker/service/OrderLogService.php
+9
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
e7b8da1f
...
@@ -320,6 +320,22 @@ class OrderLog extends Basic
...
@@ -320,6 +320,22 @@ class OrderLog extends Basic
return
$this
->
response
(
"200"
,
"request null"
);
return
$this
->
response
(
"200"
,
"request null"
);
}
}
}
}
public
function
getCommission
(){
$params
=
$this
->
params
;
/* $params = array(
"bargain_id" => 1
);*/
if
(
!
isset
(
$params
[
"bargain_id"
]))
{
return
$this
->
response
(
"101"
,
"成交交报告id不能为空"
);
}
$CommissionInfo
=
$this
->
service_
->
getCommission
(
$params
[
"bargain_id"
]);
if
(
count
(
$CommissionInfo
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$CommissionInfo
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
/**
/**
* 保存pos机收款记录
* 保存pos机收款记录
...
...
application/api_broker/service/OrderLogService.php
View file @
e7b8da1f
...
@@ -1762,4 +1762,12 @@ class OrderLogService
...
@@ -1762,4 +1762,12 @@ class OrderLogService
return
$this
->
payLogModel
->
updatePayLog
(
$params
);
return
$this
->
payLogModel
->
updatePayLog
(
$params
);
}
}
public
function
getCommission
(
$bargain_id
){
$filed
=
"a.role,a.agent_id,b.name"
;
$params
[
"a.id|a.father_id"
]
=
$bargain_id
;
$params
[
"a.role"
]
=
array
(
"in"
,
"3,4,5"
);
return
$this
->
bargainModel
->
agentBargainAll
(
$filed
,
$params
);
}
}
}
\ No newline at end of file
application/route.php
View file @
e7b8da1f
...
@@ -702,6 +702,7 @@ Route::group('broker', [
...
@@ -702,6 +702,7 @@ Route::group('broker', [
'searchBargainAgents'
=>
[
'api_broker/OrderLog/searchBargainAgents'
,
[
'method'
=>
'get'
]],
'searchBargainAgents'
=>
[
'api_broker/OrderLog/searchBargainAgents'
,
[
'method'
=>
'get'
]],
'isBargainEnd'
=>
[
'api_broker/OrderLog/isBargainEnd'
,
[
'method'
=>
'get'
]],
'isBargainEnd'
=>
[
'api_broker/OrderLog/isBargainEnd'
,
[
'method'
=>
'get'
]],
'getCommission'
=>
[
'api_broker/OrderLog/getCommission'
,
[
'method'
=>
'GET|POST'
]],
'appAgentAuth'
=>
[
'api_broker/Report/appAgentAuth'
,
[
'method'
=>
'get'
]],
'appAgentAuth'
=>
[
'api_broker/Report/appAgentAuth'
,
[
'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