...
|
...
|
@@ -645,6 +645,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
LOGGER.info("getExpressInfoListByStage orderCode is {}, expressTypeStr is {},records size is {} ,records is {}", orderCode, expressType , records.size(),JSON.toJSONString(records));
|
|
|
|
|
|
List<ExpressInfo> expressInfoList = expressInfoMapper.selectExpressInfoListByWaybillCodeAndLogisticsType(waybillCode,logisticsType);
|
|
|
//如果存在多笔订单的情况,选择一个最近的订单
|
|
|
if(CollectionUtils.isNotEmpty(expressInfoList)){
|
|
|
long latestOrder=expressInfoList.get(expressInfoList.size()-1).getOrderCode();
|
|
|
expressInfoList = expressInfoList.stream().filter(info->(latestOrder==info.getOrderCode())).collect(Collectors.toList());
|
|
|
}
|
|
|
return expressInfoList;
|
|
|
}
|
|
|
|
...
|
...
|
|