This commit is contained in:
wangjinlei
2024-05-15 16:02:43 +08:00
parent d710638983
commit f709a5f9e3
6 changed files with 25 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ public class ShopProductServiceImpl extends ServiceImpl<ShopProductDao, ShopProd
wrapper.selectAll(ShopProduct.class);
wrapper.leftJoin(ShopProductToSociologyMarket.class,ShopProductToSociologyMarket::getProductId,ShopProduct::getProductId);
wrapper.eq(ShopProductToSociologyMarket::getSociologyMarketId,param.getId());
wrapper.orderByAsc(ShopProductToSociologyMarket::getSort);
Page<ShopProduct> shopProductPage = this.getBaseMapper().selectJoinPage(new Page<>(param.getPage(), param.getLimit()), ShopProduct.class, wrapper);
return shopProductPage;
}