Skip to content

Commit

Permalink
fix: 优化积分商品活动可以同一时间创建多个
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiGaoRobot committed Oct 31, 2024
1 parent d4855b7 commit ed03265
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,17 @@ public PromotionTypeEnum getPromotionType() {
private PointsGoods checkExist(String id) {
PointsGoods pointsGoods = this.getById(id);
if (pointsGoods == null) {
log.error("id为" + id + "的积分商品不存在!");
log.error("id为{}的积分商品不存在!", id);
throw new ServiceException();
}
return pointsGoods;
}

@Override
public boolean allowExistSame() {
return true;
}

/**
* 检查积分商品是否重复存在
*
Expand Down

0 comments on commit ed03265

Please sign in to comment.