商品类型
This commit is contained in:
@@ -13,5 +13,5 @@ import java.util.List;
|
||||
*/
|
||||
public interface MkPointsGoodsMapper extends BaseMapper<MkPointsGoods> {
|
||||
|
||||
List<MkPointsGoods> getPointsGoodsPageByUser(Long shopId, Long userId);
|
||||
List<MkPointsGoods> getPointsGoodsPageByUser(Long shopId, Long userId,String goodsCategory);
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ public class MkPointsGoodsServiceImpl extends ServiceImpl<MkPointsGoodsMapper, M
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<MkPointsGoods> getPointsGoodsPageByUser(Integer page, Integer size, Long shopId, Long userId) {
|
||||
public Page<MkPointsGoods> getPointsGoodsPageByUser(Integer page, Integer size, Long shopId, String goodsCategory, Long userId) {
|
||||
PageHelper.startPage(page, size);
|
||||
List<MkPointsGoods> list = mapper.getPointsGoodsPageByUser(shopId, userId);
|
||||
List<MkPointsGoods> list = mapper.getPointsGoodsPageByUser(shopId, userId,goodsCategory);
|
||||
return PageUtil.convert(new PageInfo<>(list));
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
where goods.shop_id = #{shopId}
|
||||
and goods.del_flag = 0
|
||||
and goods.status = 1
|
||||
<if test="goodsCategory != null and goodsCategory !=''">
|
||||
and goods.goods_category = #{goodsCategory}
|
||||
</if>
|
||||
order by goods.sort desc, goods.id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user