Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
13130811
Commit
13130811
authored
May 23, 2020
by
macro
Browse files
单品促销优惠计算使用原价
parent
68160615
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsPromotionServiceImpl.java
View file @
13130811
...
...
@@ -48,6 +48,8 @@ public class OmsPromotionServiceImpl implements OmsPromotionService {
//商品原价-促销价
PmsSkuStock
skuStock
=
getOriginalPrice
(
promotionProduct
,
item
.
getProductSkuId
());
BigDecimal
originalPrice
=
skuStock
.
getPrice
();
//单品促销使用原价
cartPromotionItem
.
setPrice
(
originalPrice
);
cartPromotionItem
.
setReduceAmount
(
originalPrice
.
subtract
(
skuStock
.
getPromotionPrice
()));
cartPromotionItem
.
setRealStock
(
skuStock
.
getStock
()-
skuStock
.
getLockStock
());
cartPromotionItem
.
setIntegration
(
promotionProduct
.
getGiftPoint
());
...
...
Write
Preview
Supports
Markdown
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