fix: 优化积分商品活动可以同一时间创建多个
This commit is contained in:
parent
d4855b702b
commit
ed032653ee
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查积分商品是否重复存在
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user