实际项目要求
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;
}
,分页查询商品功能
本文描述了一个实际项目中的功能,如何使用Java方法`getAllGoodListByCate`通过Cate类别进行分页查询MarketGoodListDto对象的列表,涉及MPJLambdaWrapper和Mapper接口的使用。
5万+

被折叠的 条评论
为什么被折叠?



