Commit 829863b1 by chongfu.liang

fix

parent 98c95825
...@@ -398,10 +398,12 @@ public class ShoppingCartAdapter { ...@@ -398,10 +398,12 @@ public class ShoppingCartAdapter {
List<String> materialSpu = new ArrayList<>(); List<String> materialSpu = new ArrayList<>();
HashMap<String, ProductBeanDTO.ProductGroupType.GroupDetailType> materialHash = new HashMap<>(); HashMap<String, ProductBeanDTO.ProductGroupType.GroupDetailType> materialHash = new HashMap<>();
if (isSkuProduct){ if (isSkuProduct){
List<ProductBeanDTO.ProductGroupType.GroupDetailType> groupDetail = spuProduct.getAdditionalGroupList().get(0).getGroupDetail(); List<ProductBeanDTO.ProductGroupType> groupList = skuProductBean.getAdditionalGroupList();
for (ProductBeanDTO.ProductGroupType.GroupDetailType groupDetailType : groupDetail) { for (ProductBeanDTO.ProductGroupType groupDetail : groupList) {
materialHash.put(groupDetailType.getProductId(), groupDetailType); for (ProductBeanDTO.ProductGroupType.GroupDetailType groupDetailType : groupDetail.getGroupDetail()) {
materialSpu.add(groupDetailType.getProductId()); materialHash.put(groupDetailType.getProductId(), groupDetailType);
materialSpu.add(groupDetailType.getProductId());
}
} }
} else { } else {
List<ProductBeanDTO.ProductGroupType> groupList = spuProduct.getAdditionalGroupList(); 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