提交 d1d5d7e2 authored 作者: 杨启发's avatar 杨启发

Merge remote-tracking branch 'origin/test' into test

...@@ -3304,7 +3304,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -3304,7 +3304,7 @@ public class OrderChildServiceImpl implements OrderChildService {
if (Objects.isNull(truckLongitudeX) || Objects.isNull(truckLatitudeY)) { if (Objects.isNull(truckLongitudeX) || Objects.isNull(truckLatitudeY)) {
continue; continue;
} }
Integer distance = getGdRoute(truckNo, orderGoods.getSendLongitude(), orderGoods.getSendLatitude(), siteLongitudeX, Integer distance = getGdRoute(truckNo, truckLongitudeX, truckLatitudeY, siteLongitudeX,
siteLatitudeY); siteLatitudeY);
if (distance == null) { if (distance == null) {
log.info("高德获取卡车与货源地位置距离失败,orderGoodsNo:{},orderChildNo:{},truckNo:{}", orderGoodsNo, childNo, truckNo); log.info("高德获取卡车与货源地位置距离失败,orderGoodsNo:{},orderChildNo:{},truckNo:{}", orderGoodsNo, childNo, truckNo);
...@@ -3549,6 +3549,14 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -3549,6 +3549,14 @@ public class OrderChildServiceImpl implements OrderChildService {
notCancelOrderChildList.add(child); notCancelOrderChildList.add(child);
} }
} }
//如果可取消的订单为空。直接返回
if(CollectionUtils.isEmpty(canCancelOrderChildList)){
UpdateCarrierBatchCancelVO result = new UpdateCarrierBatchCancelVO();
result.setFailChildNoList(notCancelOrderChildList.stream().map(OrderChild :: getChildNo).collect(Collectors.toList()));
result.setSuccessCount(canCancelOrderChildList.size());
return result;
}
// 返回吨数 // 返回吨数
batchUpdateOrderGoodsWeightReturn(canCancelOrderChildList); batchUpdateOrderGoodsWeightReturn(canCancelOrderChildList);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论