- 优化,重命名 OrderLogisticsUpdateDTO

This commit is contained in:
sin 2019-03-24 11:39:00 +08:00
parent 1b200b0f07
commit a852a49947
2 changed files with 3 additions and 4 deletions

View File

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

View File

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