Commit 0606a785 authored by shiyu's avatar shiyu

后台申请单详情

parent e1484a7b
...@@ -226,13 +226,13 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe ...@@ -226,13 +226,13 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe
if (StringUtils.hasLength(userOrderId)) { if (StringUtils.hasLength(userOrderId)) {
commitOrder = distributionOrderDao.findById(userOrderId); commitOrder = distributionOrderDao.findById(userOrderId);
EntityMapper.copyAttribute(commitOrder, commitOrderVo); EntityMapper.copyAttribute(commitOrder, commitOrderVo);
} // 用户寄来平台的物流信息
//用户寄来平台的物流信息
List<ExchangeOrderSnapshot> commitExchangeOrderSnapshots = exchangeOrderSnapshotDao.findByOrderId(userOrderId); List<ExchangeOrderSnapshot> commitExchangeOrderSnapshots = exchangeOrderSnapshotDao.findByOrderId(userOrderId);
if (!CollectionUtils.isEmpty(commitExchangeOrderSnapshots)) { if (!CollectionUtils.isEmpty(commitExchangeOrderSnapshots)) {
commitOrderVo.setFromLogisticsCode(commitExchangeOrderSnapshots.get(0).getLogisticsCode()); commitOrderVo.setFromLogisticsCode(commitExchangeOrderSnapshots.get(0).getLogisticsCode());
commitOrderVo.setFromWaybill(commitExchangeOrderSnapshots.get(0).getWaybill()); commitOrderVo.setFromWaybill(commitExchangeOrderSnapshots.get(0).getWaybill());
} }
}
//交换的目标商品 //交换的目标商品
long targetItemId = exchangeApplyOrder.getTargetItemId(); long targetItemId = exchangeApplyOrder.getTargetItemId();
...@@ -257,13 +257,13 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe ...@@ -257,13 +257,13 @@ public class SysExchangeApplyOrderServiceImpl implements SysExchangeApplyOrderSe
if (StringUtils.hasLength(targetUserOrderId)) { if (StringUtils.hasLength(targetUserOrderId)) {
receiveOrder = distributionOrderDao.findById(targetUserOrderId); receiveOrder = distributionOrderDao.findById(targetUserOrderId);
EntityMapper.copyAttribute(receiveOrder, receiveOrderVo); EntityMapper.copyAttribute(receiveOrder, receiveOrderVo);
}
//用户寄来平台的物流信息 //用户寄来平台的物流信息
List<ExchangeOrderSnapshot> receiveExchangeOrderSnapshots = exchangeOrderSnapshotDao.findByOrderId(targetUserOrderId); List<ExchangeOrderSnapshot> receiveExchangeOrderSnapshots = exchangeOrderSnapshotDao.findByOrderId(targetUserOrderId);
if (!CollectionUtils.isEmpty(receiveExchangeOrderSnapshots)) { if (!CollectionUtils.isEmpty(receiveExchangeOrderSnapshots)) {
receiveOrderVo.setFromLogisticsCode(receiveExchangeOrderSnapshots.get(0).getLogisticsCode()); receiveOrderVo.setFromLogisticsCode(receiveExchangeOrderSnapshots.get(0).getLogisticsCode());
receiveOrderVo.setFromWaybill(receiveExchangeOrderSnapshots.get(0).getWaybill()); receiveOrderVo.setFromWaybill(receiveExchangeOrderSnapshots.get(0).getWaybill());
} }
}
List<SupplierItemVo> userItemList = new ArrayList<>(); List<SupplierItemVo> userItemList = new ArrayList<>();
//用户用来交换的商品 //用户用来交换的商品
for (ExchangeApplyOrderDetail exchangeApplyOrderDetail : detailList) { for (ExchangeApplyOrderDetail exchangeApplyOrderDetail : detailList) {
......
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