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
3b8ec0cd
Commit
3b8ec0cd
authored
Dec 13, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
106dee92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
PayLogService.php
application/api_broker/service/PayLogService.php
+12
-2
OPayLogModel.php
application/model/OPayLogModel.php
+3
-0
No files found.
application/api_broker/service/PayLogService.php
View file @
3b8ec0cd
...
...
@@ -30,10 +30,20 @@ class PayLogService
}
public
function
adjustment
(
$pay_id
){
//todo 1.计算剩余金额 查询调整表
//todo 1.计算剩余金额 查询调整表 2.减去退款 3.减去转账
$filed
=
"house_number,industry_type"
;
$pay_log_arr
=
$this
->
payLogModel
->
getBeforeBillInfo
(
$filed
,
[
"id"
=>
$pay_id
]);
if
(
count
(
$pay_log_arr
)
<
0
){
return
[
"code"
=>
101
,
"msg"
=>
"不存在此条收款记录"
];
}
$pay_log_arr
=
$pay_log_arr
[
0
];
$where_
[
"paylog_id"
]
=
$pay_id
;
$where_
[
"is_del"
]
=
0
;
$this
->
payLogAdjustmentModel
->
getAdjustmentList
(
$where_
,
""
);
$adjustment_arr
=
$this
->
payLogAdjustmentModel
->
getAdjustmentList
(
$where_
,
"id,money"
);
if
(
count
(
$adjustment_arr
)
>
0
){
}
}
...
...
application/model/OPayLogModel.php
View file @
3b8ec0cd
...
...
@@ -115,6 +115,9 @@ class OPayLogModel extends Model
if
(
isset
(
$params
[
"order_id"
]))
{
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
}
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"id"
]
=
$params
[
"id"
];
}
$where_
[
"father_id"
]
=
0
;
return
$this
->
db_
...
...
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