From a852a49947804080670b3d2f8c27e7e1009013de Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Sun, 24 Mar 2019 11:39:00 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=EF=BC=8C=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=20OrderLogisticsUpdateDTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/iocoder/mall/order/convert/OrderLogisticsConvert.java | 4 ++-- .../java/cn/iocoder/mall/order/service/OrderServiceImpl.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/convert/OrderLogisticsConvert.java b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/convert/OrderLogisticsConvert.java index 52c61afed..70f1fe76f 100644 --- a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/convert/OrderLogisticsConvert.java +++ b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/convert/OrderLogisticsConvert.java @@ -1,7 +1,7 @@ package cn.iocoder.mall.order.convert; import cn.iocoder.mall.order.api.dto.OrderCreateDTO; -import cn.iocoder.mall.order.api.dto.OrderLogisticsDTO; +import cn.iocoder.mall.order.api.dto.OrderLogisticsUpdateDTO; import cn.iocoder.mall.order.dataobject.OrderLogisticsDO; import org.mapstruct.Mappings; import org.mapstruct.factory.Mappers; @@ -20,5 +20,5 @@ public interface OrderLogisticsConvert { OrderLogisticsDO convert(OrderCreateDTO orderCreateDTO); @Mappings({}) - OrderLogisticsDO convert(OrderLogisticsDTO orderLogisticsDTO); + OrderLogisticsDO convert(OrderLogisticsUpdateDTO orderLogisticsDTO); } diff --git a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/service/OrderServiceImpl.java b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/service/OrderServiceImpl.java index 8ed2db5f8..598eb83ca 100644 --- a/order/order-service-impl/src/main/java/cn/iocoder/mall/order/service/OrderServiceImpl.java +++ b/order/order-service-impl/src/main/java/cn/iocoder/mall/order/service/OrderServiceImpl.java @@ -19,7 +19,6 @@ import cn.iocoder.mall.order.dao.OrderMapper; import cn.iocoder.mall.order.dataobject.OrderDO; import cn.iocoder.mall.order.dataobject.OrderItemDO; import cn.iocoder.mall.order.dataobject.OrderLogisticsDO; -import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -176,7 +175,7 @@ public class OrderServiceImpl implements OrderService { } @Override - public CommonResult updateLogistics(OrderLogisticsDTO orderLogisticsDTO) { + public CommonResult updateLogistics(OrderLogisticsUpdateDTO orderLogisticsDTO) { OrderLogisticsDO orderLogisticsDO = OrderLogisticsConvert.INSTANCE.convert(orderLogisticsDTO); orderLogisticsMapper.updateById(orderLogisticsDO); return CommonResult.success(null);