!95 优化促销更新

Merge pull request !95 from OceansDeep/feature/pg
This commit is contained in:
OceansDeep
2021-12-29 04:22:43 +00:00
committed by Gitee

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());