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
jenkins
order-group
Commits
21428b30
Commit
21428b30
authored
Feb 11, 2020
by
huvchao@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐商品保存商品组信息
parent
c1dc318f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
order-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
+2
-5
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
View file @
21428b30
...
...
@@ -209,27 +209,24 @@ public class ItemServiceImpl implements ItemService{
//第三方商品属性信息
comboProductsVo
.
setProductAttributeGroupList
(
productComboListDto
.
getProductAttributeGroupList
());
System
.
out
.
println
(
productComboListDto
.
getProductId
());
if
(
CollectionUtils
.
isNotEmpty
(
spuProductsVo
.
getProductGroupList
())){
/** 商品组 */
for
(
ProductGroup
group
:
spuProductsVo
.
getProductGroupList
()){
if
(
CollectionUtils
.
isNotEmpty
(
group
.
getGroupDetail
())){
for
(
GroupDetail
detail
:
group
.
getGroupDetail
()){
System
.
out
.
println
(
detail
.
getProductId
());
if
(
detail
.
getProductId
().
equals
(
productComboListDto
.
getProductId
())){
ProductGroup
targetGroup
=
new
ProductGroup
();
targetGroup
.
setGroupCode
(
group
.
getGroupCode
());
targetGroup
.
setName
(
group
.
getName
());
targetGroup
.
setGroupDetail
(
Lists
.
newArrayList
(
detail
));
List
<
ProductGroup
>
productGroupList
=
Lists
.
newArrayList
(
targetGroup
);
comboProductsVo
.
setProductGroupList
(
productGroupList
);
break
;
}
}
}
}
}
resultMap
.
put
(
productComboListDto
.
getProductId
(),
comboProductsVo
);
}
...
...
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