|
@@ -744,21 +744,13 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
List<Long> allOrderIds = liveOrders.stream().map(LiveOrderListVo::getOrderId)
|
|
List<Long> allOrderIds = liveOrders.stream().map(LiveOrderListVo::getOrderId)
|
|
|
.filter(Objects::nonNull).collect(Collectors.toList());
|
|
.filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
|
|
|
|
|
- List<Long> recvIdList = liveOrders.stream().filter(e -> Objects.equals(e.getStatus(), 3))
|
|
|
|
|
- .map(LiveOrderListVo::getOrderId)
|
|
|
|
|
- .filter(Objects::nonNull)
|
|
|
|
|
- .collect(Collectors.toList());
|
|
|
|
|
-
|
|
|
|
|
if(CollectionUtils.isEmpty(allOrderIds)) {
|
|
if(CollectionUtils.isEmpty(allOrderIds)) {
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|
|
|
Map<Long, FsStoreDelivers> byOrderIdWithTypeBatch = fsStoreDeliversMapper
|
|
Map<Long, FsStoreDelivers> byOrderIdWithTypeBatch = fsStoreDeliversMapper
|
|
|
.findByOrderIdWithTypeBatch(allOrderIds, 1);
|
|
.findByOrderIdWithTypeBatch(allOrderIds, 1);
|
|
|
|
|
|
|
|
- Map<Long,LiveAfterSales> liveAfterSalesMap = null;
|
|
|
|
|
- if(CollectionUtils.isNotEmpty(recvIdList)){
|
|
|
|
|
- liveAfterSalesMap = liveAfterSalesMapper.findByOrderIds(recvIdList);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Map<Long,LiveAfterSales> liveAfterSalesMap = liveAfterSalesMapper.findByOrderIds(allOrderIds);
|
|
|
|
|
|
|
|
for (LiveOrderListVo order : liveOrders) {
|
|
for (LiveOrderListVo order : liveOrders) {
|
|
|
FsStoreDelivers delivers = byOrderIdWithTypeBatch.get(order.getOrderId());
|
|
FsStoreDelivers delivers = byOrderIdWithTypeBatch.get(order.getOrderId());
|