diff --git a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/dao/OrderItemMapper.java b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/dao/OrderItemMapper.java index 6a44b1840..f7e6d23a5 100644 --- a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/dao/OrderItemMapper.java +++ b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/dao/OrderItemMapper.java @@ -35,7 +35,7 @@ public interface OrderItemMapper { * 更新 - 根据 orderId * @param orderItemDO */ - void updateByOrderId(OrderItemDO orderItemDO); + void updateByOrderId(@Param("orderItemDO") OrderItemDO orderItemDO); /** * 更新 - 根据Ids diff --git a/order/order-service-impl/src/main/resources/mapper/OrderItemMapper.xml b/order/order-service-impl/src/main/resources/mapper/OrderItemMapper.xml index 24b301906..ea93b8348 100644 --- a/order/order-service-impl/src/main/resources/mapper/OrderItemMapper.xml +++ b/order/order-service-impl/src/main/resources/mapper/OrderItemMapper.xml @@ -34,12 +34,12 @@ --> - - , order_id = #{orderItemDO.orderId} - - - , order_no = #{orderItemDO.orderNo} - + + + + + + , order_logistics_id = #{orderItemDO.orderLogisticsId} @@ -123,7 +123,7 @@ UPDATE `order_item` - WHERE order_id = #{orderId} + WHERE order_id = #{orderItemDO.orderId}