修改订单详情

This commit is contained in:
wuchunlei
2024-06-04 15:55:47 +08:00
parent af2c039b82
commit a842bbb6d6

View File

@@ -123,10 +123,10 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
MPJLambdaWrapper<BuyOrderProduct> buyOrderProductWrapper = new MPJLambdaWrapper<>();
buyOrderProductWrapper.leftJoin(BuyOrder.class,BuyOrder::getOrderId,BuyOrderProduct::getOrderId);
buyOrderProductWrapper.leftJoin(ShopProduct.class,ShopProduct::getProductId,BuyOrderProduct::getProductId);
buyOrderProductWrapper.select(BuyOrderProduct::getQuantity);
buyOrderProductWrapper.selectAs(BuyOrderProduct::getQuantity,"quantity");
buyOrderProductWrapper.selectAll(ShopProduct.class);
buyOrderProductWrapper.eq(BuyOrder::getOrderId,buyOrder.getOrderId());
List productInfo = buyOrderProductDao.selectMaps(buyOrderProductWrapper);
List<ShopProduct> productInfo = buyOrderProductDao.selectJoinList(ShopProduct.class,buyOrderProductWrapper);
res.put("productInfo",productInfo);
//添加快递信息
LambdaQueryWrapper<ExpressOrder> expressOrderWrapper = new LambdaQueryWrapper<>();