|
|
@@ -1987,10 +1987,10 @@ public class WaybillOrderService {
|
|
|
// 查询运单数据
|
|
|
List<WaybillOrderReportResp> orderRepoost = getWaybillOrderRepoost(param);
|
|
|
// 过滤
|
|
|
- filter(param, orderRepoost);
|
|
|
+ List<WaybillOrderReportResp> filterOrderRepoost = filter(param, orderRepoost);
|
|
|
|
|
|
//汇总数据
|
|
|
- List<WaybillOrderReportResp> orderGroupedReportList = buildGroupedReport(orderRepoost);
|
|
|
+ List<WaybillOrderReportResp> orderGroupedReportList = buildGroupedReport(filterOrderRepoost);
|
|
|
|
|
|
return orderGroupedReportList;
|
|
|
}
|
|
|
@@ -2044,6 +2044,9 @@ public class WaybillOrderService {
|
|
|
|
|
|
// 6.运单
|
|
|
List<KwtWaybillOrder> waybillOrderList = queryWaybillOrders(param, lOrderIds);
|
|
|
+ if (CollectionUtils.isEmpty(waybillOrderList)) {
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
List<Long> wOrderIds = waybillOrderList.stream().map(KwtWaybillOrder::getId).collect(Collectors.toList());
|
|
|
log.info("运单,size:{}", wOrderIds.size());
|
|
|
|
|
|
@@ -2100,7 +2103,8 @@ public class WaybillOrderService {
|
|
|
|
|
|
List<KwtWaybillOrder> waybillOrderList = waybillOrderRepository.list(queryWrapper);
|
|
|
if (CollectionUtils.isEmpty(waybillOrderList)) {
|
|
|
- throw new BusinessPlatfromException(ErrorCodeEnum.WAYBILL_ORDER_NOT_FOUND, "物流运单不存在,lOrderIds:" + JSON.toJSONString(lOrderIds));
|
|
|
+ log.info("物流运单不存在!,lOrderIds:{}", JSON.toJSONString(lOrderIds));
|
|
|
+ return new ArrayList<>();
|
|
|
}
|
|
|
return waybillOrderList;
|
|
|
}
|
|
|
@@ -2284,9 +2288,9 @@ public class WaybillOrderService {
|
|
|
// 查询运单数据
|
|
|
List<WaybillOrderReportResp> orderRepoost = getWaybillOrderRepoost(param);
|
|
|
// 过滤
|
|
|
- filter(param, orderRepoost);
|
|
|
+ List<WaybillOrderReportResp> filterOrderRepoost = filter(param, orderRepoost);
|
|
|
//汇总数据
|
|
|
- List<WaybillOrderReportResp> orderGroupedReportList = buildGroupedReport(orderRepoost);
|
|
|
+ List<WaybillOrderReportResp> orderGroupedReportList = buildGroupedReport(filterOrderRepoost);
|
|
|
return BeanUtils.copyToList(orderGroupedReportList, WaybillOrderReportRespExcelVO.class);
|
|
|
}
|
|
|
|