Commit 0606a785 authored by shiyu's avatar shiyu

后台申请单详情

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