fix: 优化积分商品活动可以同一时间创建多个

This commit is contained in:
misworga831 2024-10-31 16:45:38 +08:00
parent d4855b702b
commit ed032653ee

View File

@ -247,12 +247,17 @@ public class PointsGoodsServiceImpl extends AbstractPromotionsServiceImpl<Points
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;
}
/**
* 检查积分商品是否重复存在
*