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
3eda2ea2
Commit
3eda2ea2
authored
Apr 21, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账户明细列表
parent
814d6267
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
AccountBalanceService.php
application/api/service/AccountBalanceService.php
+20
-4
No files found.
application/api/service/AccountBalanceService.php
View file @
3eda2ea2
<?php
namespace
app\api\service
;
use
app\model\CCoupon
;
use
app\model\UAccountBalance
;
use
app\model\UAccountCheck
;
use
app\model\Users
;
...
...
@@ -43,10 +44,6 @@ class AccountBalanceService{
//todo 后台账户明细表
/**
* 账户明细列表
* @param $params
...
...
@@ -54,9 +51,28 @@ class AccountBalanceService{
*/
public
function
getBalanceList
(
$params
){
$res
=
$this
->
m_account_balance
->
getBalanceList
(
$params
);
foreach
(
$res
as
$key
=>
$value
)
{
$res
[
$key
][
'order_id'
]
=
0
;
if
(
$value
[
'is_essay'
]
==
1
&&
$value
[
'source_type'
]
==
0
){
$res
[
$key
][
'order_id'
]
=
$this
->
getOrderId
(
$value
[
'source_id'
]);
}
}
return
$res
;
}
public
function
getOrderId
(
$source_id
){
$m_coupon
=
new
CCoupon
();
$params
[
'id'
]
=
$source_id
;
$params
[
'status'
]
=
1
;
$field
=
'order_id'
;
$res
=
$m_coupon
->
getCoupon
(
$field
,
$params
);
if
(
$res
){
return
$res
[
0
][
'order_id'
];
}
else
{
return
0
;
}
}
public
function
getBalanceCount
(
$params
){
$balanceCount
=
$this
->
m_account_balance
->
getBalanceCount
(
$params
);
$accountCheckModel
=
new
UAccountCheck
();
...
...
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