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
0336c80f
Commit
0336c80f
authored
Nov 30, 2020
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐中有单品组成的多规格,加料商品取值修改
parent
db300e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ShoppingCartConvertAdapter.java
+22
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ShoppingCartConvertAdapter.java
View file @
0336c80f
...
@@ -933,6 +933,28 @@ public class ShoppingCartConvertAdapter {
...
@@ -933,6 +933,28 @@ public class ShoppingCartConvertAdapter {
}
}
}
}
}
}
}
else
{
if
(
CollectionUtils
.
isNotEmpty
(
comboxGoodsSkuProductBean
.
getAdditionalGroupList
())){
List
<
ProductTypeBeanDTO
.
ProductGroupType
.
GroupDetailType
>
groupDetail
=
new
ArrayList
<>();
for
(
ProductTypeBeanDTO
.
ProductGroupType
productGroupType
:
comboxGoodsSkuProductBean
.
getAdditionalGroupList
()){
groupDetail
.
addAll
(
productGroupType
.
getGroupDetail
());
}
for
(
com
.
freemud
.
sdk
.
api
.
assortment
.
shoppingcart
.
domain
.
CartGoods
.
MaterialGoods
productMaterial
:
comboxGoods
.
getProductMaterialList
()){
for
(
ProductTypeBeanDTO
.
ProductGroupType
.
GroupDetailType
groupDetailType
:
groupDetail
){
if
(
groupDetailType
.
getProductId
().
equals
(
productMaterial
.
getSpuId
())){
productMaterial
.
setSpuId
(
groupDetailType
.
getProductId
());
productMaterial
.
setAmount
(
groupDetailType
.
getProductFinalPrice
().
longValue
());
productMaterial
.
setFinalPrice
(
groupDetailType
.
getProductFinalPrice
().
longValue
());
productMaterial
.
setOriginalAmount
(
groupDetailType
.
getProductFinalPrice
().
longValue
());
productMaterial
.
setOriginalPrice
(
groupDetailType
.
getProductFinalPrice
().
longValue
());
productMaterial
.
setSpuName
(
groupDetailType
.
getProductName
());
}
}
}
}
else
{
//都不存在移除商品
comboxGoods
.
setProductMaterialList
(
new
ArrayList
<>());
}
}
}
}
}
}
}
...
...
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