Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
145f3422
authored
Dec 04, 2017
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize the refund amount
parent
622133ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/com/ctrip/fun/admin/controller/order/OpEventActivityOrderController.java
src/main/java/com/ctrip/fun/admin/controller/order/OpEventActivityOrderController.java
View file @
145f3422
...
...
@@ -445,7 +445,11 @@ public class OpEventActivityOrderController extends AbstractOpOrderController<Ev
processBean
.
setPlayerNum
(
playerNum
.
trim
());
}
BigDecimal
refundTotalAmount
=
orderBean
.
getPrePayCardRefundAmount
().
add
(
orderBean
.
getRefundAmount
());
BigDecimal
requestTotalAmount
=
BigDecimal
.
valueOf
(
Double
.
parseDouble
(
refundAmount
)).
add
(
BigDecimal
.
valueOf
(
Double
.
parseDouble
(
prePayCardRefundAmount
)));
BigDecimal
requestTotalAmount
=
new
BigDecimal
(
0
);
if
(
StringUtils
.
isEmpty
(
refundAmount
)
&&
StringUtils
.
isEmpty
(
prePayCardRefundAmount
)){
requestTotalAmount
=
BigDecimal
.
valueOf
(
Double
.
parseDouble
(
refundAmount
)).
add
(
BigDecimal
.
valueOf
(
Double
.
parseDouble
(
prePayCardRefundAmount
)));
}
BigDecimal
enableRefundAmount
=
orderBean
.
getPrePayAmount
().
subtract
(
orderBean
.
getVoucherAmount
());
if
(
requestTotalAmount
.
add
(
refundTotalAmount
).
compareTo
(
enableRefundAmount
)==
1
){
map
.
addAttribute
(
"message"
,
"退款金额超出限制!"
);
...
...
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