!360 fix & improve

Merge pull request !360 from pg
This commit is contained in:
OceansDeep 2024-10-31 08:47:11 +00:00 committed by Gitee
commit 8ef00ae285
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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;
}
/**
* 检查积分商品是否重复存在
*