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
b0abae59
Commit
b0abae59
authored
Dec 25, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1224-v3.0.3' into 1224-v3.0.3
# Conflicts: # application/model/ORefundModel.php
parents
4dd91900
51a4a1c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
Finance.php
application/index/controller/Finance.php
+8
-0
ORefundModel.php
application/model/ORefundModel.php
+25
-0
No files found.
application/index/controller/Finance.php
View file @
b0abae59
...
...
@@ -808,6 +808,14 @@ class Finance extends Basic
$where
[
'a.agent_id'
]
=
$this
->
params
[
'agent_id'
];
}
if
(
isset
(
$this
->
params
[
'is_self'
])
&&
$this
->
params
[
'is_self'
]
!=
-
1
)
{
if
(
$this
->
params
[
'is_self'
])
{
$where
[
'e.operation_id'
]
=
$this
->
userId
;
}
else
{
$where
[
'e.operation_id'
]
=
[
'<>'
,
$this
->
userId
];
}
}
$fields
=
'a.create_time,a.id,a.order_id,a.pay_log_id,a.refund_money,a.type,a.agent_id,a.agent_name,b.house_id,a.status,'
;
$fields
.=
'd.income_time,a.type,c.store_id'
;
$list
=
$refund
->
getCheckRefundList
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
...
...
application/model/ORefundModel.php
View file @
b0abae59
...
...
@@ -245,4 +245,28 @@ class ORefundModel extends Model{
return
$data
;
}
/**
* @param $params
* @return float|int
*/
public
function
getSumMoney
(
$params
)
{
return
$this
->
db_
->
alias
(
'a'
)
->
join
(
'o_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'o_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
where
(
$params
)
->
group
(
'a.id'
)
->
sum
(
'a.refund_money'
);
}
/**
* @param $data
* @param $where
* @return ORefundModel
*/
public
function
updateData
(
$data
,
$where
)
{
return
$this
->
where
(
$where
)
->
update
(
$data
);
}
}
\ No newline at end of file
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