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
ffd7420e
Commit
ffd7420e
authored
Apr 03, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否可调整
parent
a5ef3cd0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+0
-0
OrderLogService.php
application/api_broker/service/OrderLogService.php
+19
-0
OPayLogModel.php
application/model/OPayLogModel.php
+3
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
ffd7420e
This diff is collapsed.
Click to expand it.
application/api_broker/service/OrderLogService.php
View file @
ffd7420e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
app\api_broker\service
;
namespace
app\api_broker\service
;
use
app\model\AAgents
;
use
app\model\AppointWatchShop
;
use
app\model\AppointWatchShop
;
use
app\model\FollowUpLogModel
;
use
app\model\FollowUpLogModel
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesFollowUp
;
...
@@ -179,6 +180,24 @@ class OrderLogService
...
@@ -179,6 +180,24 @@ class OrderLogService
return
$father_id
;
return
$father_id
;
}
}
public
function
verifyIsShowAdjustment
(
$pay_id
,
$agent_id
){
$params
[
"id"
]
=
$pay_id
;
$pay_log_info
=
$this
->
payLogModel
->
getPayLogByOrderId
(
"a.id,a.agent_id,c.store_id"
,
$params
);
if
(
count
(
$pay_log_info
)
<=
0
){
return
[
"code"
=>
101
,
"msg"
=>
"没有找到相对应的收款信息"
];
}
$agentModel
=
new
AAgents
();
$agent_info
=
$agentModel
->
getAgentById
(
"id,store_id"
,[
"id"
=>
$agent_id
]);
if
(
count
(
$agent_info
)
<=
0
){
return
[
"code"
=>
101
,
"msg"
=>
"没有找到相对应的经纪人信息"
];
}
if
(
$pay_log_info
[
0
][
"store_id"
]
!=
$agent_info
[
0
][
"store_id"
]){
return
[
"code"
=>
200
,
"is_show"
=>
false
];
}
else
{
return
[
"code"
=>
200
,
"is_show"
=>
true
];
}
}
/**
/**
* 验证金额是否合法
* 验证金额是否合法
* @param $pay_id
* @param $pay_id
...
...
application/model/OPayLogModel.php
View file @
ffd7420e
...
@@ -141,6 +141,9 @@ class OPayLogModel extends Model
...
@@ -141,6 +141,9 @@ class OPayLogModel extends Model
if
(
isset
(
$params
[
"bargain_id"
]))
{
if
(
isset
(
$params
[
"bargain_id"
]))
{
$where_
[
"a.bargain_id"
]
=
$params
[
"bargain_id"
];
$where_
[
"a.bargain_id"
]
=
$params
[
"bargain_id"
];
}
}
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"id"
];
}
$where_
[
"a.is_del"
]
=
0
;
$where_
[
"a.is_del"
]
=
0
;
return
Db
::
table
(
$this
->
table
)
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
...
...
application/route.php
View file @
ffd7420e
...
@@ -713,6 +713,7 @@ Route::group('broker', [
...
@@ -713,6 +713,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'
]],
'getCommission'
=>
[
'api_broker/OrderLog/getCommission'
,
[
'method'
=>
'GET|POST'
]],
'isShowAdjustment'
=>
[
'api_broker/OrderLog/isShowAdjustment'
,
[
'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