优化代码,修复bug
This commit is contained in:
@@ -88,6 +88,7 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements Me
|
||||
if (CharSequenceUtil.isNotEmpty(menu.getId())) {
|
||||
|
||||
}
|
||||
cache.vagueDel(CachePrefix.USER_MENU.getPrefix(UserEnums.MANAGER));
|
||||
return this.saveOrUpdate(menu);
|
||||
}
|
||||
|
||||
|
||||
@@ -314,7 +314,7 @@ public class PromotionGoodsServiceImpl extends ServiceImpl<PromotionGoodsMapper,
|
||||
}
|
||||
|
||||
private void setGoodsPromotionInfo(GoodsSku dataSku, Map.Entry<String, Object> promotionInfo) {
|
||||
JSONObject promotionsObj = JSONUtil.parseObj(promotionInfo);
|
||||
JSONObject promotionsObj = JSONUtil.parseObj(promotionInfo.getValue());
|
||||
PromotionGoodsSearchParams searchParams = new PromotionGoodsSearchParams();
|
||||
searchParams.setSkuId(dataSku.getId());
|
||||
searchParams.setPromotionId(promotionsObj.get("id").toString());
|
||||
|
||||
Reference in New Issue
Block a user