|
|
@@ -48,15 +48,16 @@ public class PointGoodsServiceImpl extends BaseServiceImpl<PointGoodsMapper, Poi
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IPage<PointGoods> queryList(Long activeId,Query query) {
|
|
|
+ public IPage<PointGoods> queryList(Long activeId,Query query) throws IllegalAccessException {
|
|
|
LambdaQueryWrapper<PointGoods> wrapper = new LambdaQueryWrapper<PointGoods>().eq(PointGoods::getActiveId, activeId);
|
|
|
|
|
|
List<PointGoods> goods = baseMapper.selectList(wrapper);
|
|
|
- Assert.isNull(goods,"此活动没有可兑换商品");
|
|
|
+ if (goods.size() == 0){
|
|
|
+ throw new IllegalAccessException("此活动没有可兑换商品");
|
|
|
+ }
|
|
|
|
|
|
IPage<PointGoods> pointGoodsIpage = new Page<>(query.getCurrent(),query.getSize());
|
|
|
|
|
|
-
|
|
|
return super.page(pointGoodsIpage,wrapper);
|
|
|
|
|
|
}
|