From ba11aa480d87891cd04bef4b6e809be84c9721b8 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Fri, 12 Apr 2019 19:57:39 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E6=94=B9update=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/order/biz/dao/OrderItemMapper.java | 2 +- .../src/main/resources/mapper/OrderItemMapper.xml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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}