Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
894ad828
Commit
894ad828
authored
Oct 14, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
19aec82f
48e21a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
OrderCalculateBiz.java
.../com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
+6
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
View file @
894ad828
...
@@ -122,7 +122,8 @@ public class OrderCalculateBiz {
...
@@ -122,7 +122,8 @@ public class OrderCalculateBiz {
inProgressVO
.
setUsedFreeDaysAmount
(
orderItem
.
getUnitPrice
().
multiply
(
new
BigDecimal
(
useDays
+
""
)));
inProgressVO
.
setUsedFreeDaysAmount
(
orderItem
.
getUnitPrice
().
multiply
(
new
BigDecimal
(
useDays
+
""
)));
//返回剩余免费天数,返回优惠券,订单款
//返回剩余免费天数,返回优惠券,订单款
refundAmount
=
refundAmount
.
add
(
goodsRealAmount
);
//修改bug,不需要提前加, 已在handleConsumeAmount方法中添加
// refundAmount = refundAmount.add(goodsRealAmount);
inProgressVO
.
setBackFreeDays
(
backFreeDays
);
inProgressVO
.
setBackFreeDays
(
backFreeDays
);
//返回优惠券
//返回优惠券
...
@@ -132,7 +133,10 @@ public class OrderCalculateBiz {
...
@@ -132,7 +133,10 @@ public class OrderCalculateBiz {
}
}
//设置消费金额 由于返回了优惠券,所以添加优惠券之前减免的金额
//设置消费金额 由于返回了优惠券,所以添加优惠券之前减免的金额
consumeAmount
=
consumeAmount
.
add
(
otherItemRealAmount
).
add
(
baseOrder
.
getCouponAmount
());
consumeAmount
=
consumeAmount
.
add
(
otherItemRealAmount
);
//修改bug,消费金额不需要添加优惠券金额
//.add(baseOrder.getCouponAmount());
inProgressVO
.
setConsumeAmount
(
consumeAmount
);
inProgressVO
.
setConsumeAmount
(
consumeAmount
);
refundAmount
=
handleConsumeAmount
(
oad
,
refundAmount
,
consumeAmount
,
goodsRealAmount
,
inProgressVO
);
refundAmount
=
handleConsumeAmount
(
oad
,
refundAmount
,
consumeAmount
,
goodsRealAmount
,
inProgressVO
);
...
...
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