实际项目要求
public Page<MarketGoodListDto> getAllGoodListByCate(int page, String goodcate) {
MPJLambdaWrapper<MarketGoodListDto> wrapper=new MPJLambdaWrapper<MarketGoodListDto>()
.selectAll(MarketGoodListDto.class)
.eq(MarketGoodListDto::getCateId,goodcate);
Page<MarketGoodListDto> listPage = marketGoodListDtoMapper.selectJoinPage(new Page<>(page, 10), MarketGoodListDto.class, wrapper);
return listPage;
}
,分页查询商品功能