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);