|
|
@@ -150,22 +150,23 @@ public class CmsGoodsDonSkuController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //优惠加购
|
|
|
- goodsDonSkuService.handleDiscountPurchaseGoods(sku, sku.getDpSku());
|
|
|
-
|
|
|
String benefitsList = sku.getBenefitsList();
|
|
|
if (StrUtil.isNotBlank(benefitsList)) {
|
|
|
Set<GoodsDonSku> benefitsSkuIds = Jsons.parseSet(benefitsList, GoodsDonSku.class);
|
|
|
sku.setBenefitsList(Jsons.toJson(benefitsSkuIds));
|
|
|
}
|
|
|
- goodsDonSkuService.saveOrUpdate(sku);
|
|
|
- //给平台更新额外属性
|
|
|
- goodsDonService.updateGoodsSkuPrice(sku.getGoodsId(), null);
|
|
|
- refreshCacheService.refreshYhHomePageCache();
|
|
|
+ //多语言
|
|
|
String lang = request.getHeader("lang");
|
|
|
if (!StrUtil.equals(UserPageLanguage.Language.zh_HK.name(), lang)) {
|
|
|
backInfoTranslationsService.saveOrUpdateBackInfoTranslations(BackInfoTranslations.Type.sku, sku.getId(), sku, lang);
|
|
|
+ } else {
|
|
|
+ //优惠加购
|
|
|
+ goodsDonSkuService.handleDiscountPurchaseGoods(sku, sku.getDpSku());
|
|
|
+ goodsDonSkuService.saveOrUpdate(sku);
|
|
|
+ //给平台更新额外属性
|
|
|
+ goodsDonService.updateGoodsSkuPrice(sku.getGoodsId(), null);
|
|
|
}
|
|
|
+ refreshCacheService.refreshYhHomePageCache();
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|