Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
9b7fb7e8
Commit
9b7fb7e8
authored
Nov 16, 2021
by
查志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20211116-sdk升级-zhiwei.zha' into qa
parents
077aafda
7a38bc7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
pom.xml
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationCommonService.java
+8
-2
No files found.
pom.xml
View file @
9b7fb7e8
...
...
@@ -113,7 +113,7 @@
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
sdk-common-base
</artifactId>
<version>
2.0.
0-SNAPSHOT
</version>
<version>
2.0.
4-RELEASE
</version>
</dependency>
<!-- mybatis -->
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
9b7fb7e8
...
...
@@ -2115,7 +2115,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
XyDiscountServiceImpl
xyDiscountService
=
(
XyDiscountServiceImpl
)
PromotionFactory
.
getPromotionService
(
ShoppingCartPromotionEnum
.
XY_DISCOUNT
);
xyDiscountService
.
updateShoppingCartGoodsApportion
(
shoppingCartGoodsResponseVo
,
calculationDiscountResult
,
shoppingCartGoodsDto
,
premiumExchangeActivity
,
shoppingCartInfoRequestVo
);
//
xy折
//
满赠
BuyAndGiftsPromotionService
buyAndGiftsPromotionService
=
(
BuyAndGiftsPromotionService
)
PromotionFactory
.
getPromotionService
(
ShoppingCartPromotionEnum
.
BUY_GIFTS
);
buyAndGiftsPromotionService
.
updateShoppingCartGoodsApportion
(
shoppingCartGoodsResponseVo
,
calculationDiscountResult
,
shoppingCartGoodsDto
,
premiumExchangeActivity
,
shoppingCartInfoRequestVo
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationCommonService.java
View file @
9b7fb7e8
...
...
@@ -449,8 +449,14 @@ public class CalculationCommonService {
cartGoodsDetailDto
.
setOriginalPrice
(
cartGoods
.
getOriginalPrice
());
}
if
(
calculationGoods
!=
null
)
{
cartGoodsDetailDto
.
setTotalDiscountAmount
(
calculationGoods
.
getDiscountAmount
().
intValue
());
//cartGoodsDetailDto.setOriginalPrice(calculationGoods.getOriginalPrice());
if
(
cartGoodsDetailDto
.
getIsSendGoods
())
{
// 由于买赠活动中,赠品有属性的时候会裂为多行,所有优惠金额不能直接用促销返回的, 需要根据实际购物车行中的数量来计算
int
discountAmt
=
calculationGoods
.
getDiscountAmount
().
intValue
();
int
discountCount
=
calculationGoods
.
getGoodsQuantity
();
cartGoodsDetailDto
.
setTotalDiscountAmount
(
discountAmt
/
discountCount
*
cartGoods
.
getQty
());
}
else
{
cartGoodsDetailDto
.
setTotalDiscountAmount
(
calculationGoods
.
getDiscountAmount
().
intValue
());
}
}
else
{
cartGoodsDetailDto
.
setTotalDiscountAmount
(
cartGoods
.
getOriginalAmount
().
intValue
()
-
cartGoods
.
getAmount
().
intValue
());
...
...
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