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
ad39b11e
Commit
ad39b11e
authored
May 14, 2020
by
shuhu.hou@freemud.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
买赠商品添加weight、unit字段fixbug
parent
242db394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
+4
-4
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
View file @
ad39b11e
...
...
@@ -85,7 +85,7 @@ public class BuySendPromotionService implements IPromotionService {
}
}
//更新商品详情信息
updateSendGooodsInfo
(
newCartGoodsList
,
shoppingCartInfoRequestVo
);
updateSendGooodsInfo
(
newCartGoodsList
,
activityQueryDto
,
shoppingCartInfoRequestVo
);
//价格从低到高筛选出maxNum个,并将价格设置为0
newCartGoodsList
.
sort
(
Comparator
.
comparing
(
CartGoods:
:
getOriginalPrice
));
// 优惠商品总包装费
...
...
@@ -232,10 +232,10 @@ public class BuySendPromotionService implements IPromotionService {
* 例如:weight、unit字段
* @param newCartGoodsList
*/
private
void
updateSendGooodsInfo
(
List
<
CartGoods
>
newCartGoodsList
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
){
private
void
updateSendGooodsInfo
(
List
<
CartGoods
>
newCartGoodsList
,
ActivityQueryDto
activityQueryDto
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
){
List
<
String
>
goodsIds
=
newCartGoodsList
.
stream
().
map
(
CartGoods:
:
getGoodsId
).
collect
(
Collectors
.
toList
());
List
<
ProductBeanDTO
>
productBeanList
=
assortmentSdkService
.
getProductsInfoSdk
(
shoppingCartInfoRequestV
o
.
getPartnerId
()
,
shoppingCartInfoRequestVo
.
getShopId
(),
goodsIds
,
shoppingCartInfoRequestVo
.
getMenuType
()
,
shoppingCartBaseService
);
List
<
ProductBeanDTO
>
productBeanList
=
assortmentSdkService
.
getProductsInfoSdk
(
activityQueryDt
o
.
getPartnerId
()
,
activityQueryDto
.
getStoreId
(),
goodsIds
,
shoppingCartInfoRequestVo
==
null
?
null
:
shoppingCartInfoRequestVo
.
getMenuType
()
,
shoppingCartBaseService
);
if
(
CollectionUtils
.
isEmpty
(
productBeanList
))
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_GIFTS_PRODUCT_NOT_EXIST
);
}
...
...
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