Commit 829863b1 by chongfu.liang

fix

parent 98c95825
......@@ -398,10 +398,12 @@ public class ShoppingCartAdapter {
List<String> materialSpu = new ArrayList<>();
HashMap<String, ProductBeanDTO.ProductGroupType.GroupDetailType> materialHash = new HashMap<>();
if (isSkuProduct){
List<ProductBeanDTO.ProductGroupType.GroupDetailType> groupDetail = spuProduct.getAdditionalGroupList().get(0).getGroupDetail();
for (ProductBeanDTO.ProductGroupType.GroupDetailType groupDetailType : groupDetail) {
materialHash.put(groupDetailType.getProductId(), groupDetailType);
materialSpu.add(groupDetailType.getProductId());
List<ProductBeanDTO.ProductGroupType> groupList = skuProductBean.getAdditionalGroupList();
for (ProductBeanDTO.ProductGroupType groupDetail : groupList) {
for (ProductBeanDTO.ProductGroupType.GroupDetailType groupDetailType : groupDetail.getGroupDetail()) {
materialHash.put(groupDetailType.getProductId(), groupDetailType);
materialSpu.add(groupDetailType.getProductId());
}
}
} else {
List<ProductBeanDTO.ProductGroupType> groupList = spuProduct.getAdditionalGroupList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment