Commit 829863b1 by chongfu.liang

fix

parent 98c95825
...@@ -398,11 +398,13 @@ public class ShoppingCartAdapter { ...@@ -398,11 +398,13 @@ 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) {
for (ProductBeanDTO.ProductGroupType.GroupDetailType groupDetailType : groupDetail.getGroupDetail()) {
materialHash.put(groupDetailType.getProductId(), groupDetailType); materialHash.put(groupDetailType.getProductId(), groupDetailType);
materialSpu.add(groupDetailType.getProductId()); materialSpu.add(groupDetailType.getProductId());
} }
}
} else { } else {
List<ProductBeanDTO.ProductGroupType> groupList = spuProduct.getAdditionalGroupList(); List<ProductBeanDTO.ProductGroupType> groupList = spuProduct.getAdditionalGroupList();
for (ProductBeanDTO.ProductGroupType groupDetail : groupList){ for (ProductBeanDTO.ProductGroupType groupDetail : groupList){
......
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