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