|
|
@@ -1634,6 +1634,21 @@ public class TransportServiceImpl implements TransportRemoteService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Long queryWaybillCount(Long entId) {
|
|
|
+ log.info("开始统计物流运单信息!");
|
|
|
+ WaybillOrderReq req = new WaybillOrderReq();
|
|
|
+ req.setNewEntId(entId);
|
|
|
+ StatisticsWaybillResp statisticsWaybillResp = waybillOrderV1Service.statisticsWaybillOrder(req);
|
|
|
+ List<StatisticsWaybillResp.OrderBillStatusStatistics> orderStatusStatistics = statisticsWaybillResp.getOrderStatusStatistics();
|
|
|
+ if (CollUtil.isEmpty(orderStatusStatistics)) {
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+ Optional<StatisticsWaybillResp.OrderBillStatusStatistics> first = orderStatusStatistics.stream().filter(d -> StrUtil.equals(d.getOrderStatus(), "20")).findFirst();
|
|
|
+ return first.map(contractStatusCount -> Long.parseLong(contractStatusCount.getOrderNum())).orElse(0L);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public Long queryCount() {
|
|
|
List<Long> ids = new ArrayList<>();
|