优化促销更新

This commit is contained in:
paulGao 2021-12-29 12:19:17 +08:00
parent c3221a6fff
commit b6db829b04

View File

@ -224,7 +224,7 @@ public abstract class AbstractPromotionsServiceImpl<M extends BaseMapper<T>, T e
this.promotionGoodsService.deletePromotionGoods(Collections.singletonList(promotions.getId()));
return true;
}
boolean result = false;
boolean result = true;
if (CharSequenceUtil.equalsAny(promotions.getScopeType(), PromotionsScopeTypeEnum.ALL.name(), PromotionsScopeTypeEnum.PORTION_GOODS_CATEGORY.name())) {
PromotionGoods promotionGoods = new PromotionGoods();
promotionGoods.setScopeId(promotions.getScopeId());