Browse Source

修改商品编辑bug

multiwx
xh-pan1 7 months ago
parent
commit
da6c698652
  1. 13
      cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java

13
cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java

@ -376,6 +376,19 @@ public class CereShopProductServiceImpl implements CereShopProductService {
}else {
nameValue.setNeed(IntegerEnum.NO.getCode());
}
Map<String, CereSkuNameLangInfo> langInfoMap = new HashMap<>();
for (String langKey : a.getLangInfoMap().keySet()) {
CereSkuNameLangInfo skuNameLangInfo = new CereSkuNameLangInfo();
if(a.getLangInfoMap().containsKey(langKey)){
skuNameLangInfo.setSkuName(a.getLangInfoMap().get(langKey).getSkuName());
}
if(value.getLangInfoMap().containsKey(langKey)){
skuNameLangInfo.setSkuValue(value.getLangInfoMap().get(langKey).getSkuValue());
}
langInfoMap.put(langKey, skuNameLangInfo);
}
nameValue.setLangInfoMap(langInfoMap);
map.put(a.getCode()+"-"+value.getValueCode(),nameValue);
});
});

Loading…
Cancel
Save