Commit c114cc16 authored by shiyu's avatar shiyu

后台换藏订单兼容上版本

parent 07eb6e5d
......@@ -223,6 +223,8 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe
//申请方的订单信息
SysExchangeOrderVo commitOrderVo = new SysExchangeOrderVo();
DistributionOrder commitOrder = new DistributionOrder();
commitOrder.setBuyerId(0L);
commitOrder.setSellerId(0L);
if (StringUtils.hasLength(userOrderId)) {
commitOrder = distributionOrderDao.findById(userOrderId);
EntityMapper.copyAttribute(commitOrder, commitOrderVo);
......@@ -254,6 +256,8 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe
List<ExchangeApplyOrderDetail> detailList = exchangeApplyOrderDetailDao.findByOrderId(exchangeApplyOrder.getExchangeApplyOrderId());
SysExchangeOrderVo receiveOrderVo = new SysExchangeOrderVo();
DistributionOrder receiveOrder = new DistributionOrder();
receiveOrder.setBuyerId(0L);
receiveOrder.setSellerId(0L);
if (StringUtils.hasLength(targetUserOrderId)) {
receiveOrder = distributionOrderDao.findById(targetUserOrderId);
EntityMapper.copyAttribute(receiveOrder, receiveOrderVo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment