提交 cbc073fd authored 作者: 刘海泉's avatar 刘海泉

Merge remote-tracking branch 'origin/v20.8_add_sub_weight_20240805' into test

...@@ -49,8 +49,10 @@ public class OrderWeightServiceImpl implements OrderWeightService { ...@@ -49,8 +49,10 @@ public class OrderWeightServiceImpl implements OrderWeightService {
if(CollectionUtils.isEmpty(orderGoodsList)){ if(CollectionUtils.isEmpty(orderGoodsList)){
return OrderExtractWeightVO.builder().transportWeight(orderInfo.getTransportWeight()) return OrderExtractWeightVO.builder().transportWeight(orderInfo.getTransportWeight())
.truckDemand(orderInfo.getTruckDemand()) .truckDemand(orderInfo.getTruckDemand())
.ownCarryWeight(orderInfo.getOwnCarryWeight()).platformCarryWeight(orderInfo.getPlatformCarryWeight()) .ownCarryWeight(orderInfo.getOwnCarryWeight())
.ownCanExtractWeight(orderInfo.getOwnCarryWeight()).platCanExtractWeight(orderInfo.getPlatformCarryWeight()) .platformCarryWeight(orderInfo.getPlatformCarryWeight())
.ownCanExtractWeight(orderInfo.getOwnCarryWeight())
.platCanExtractWeight(orderInfo.getPlatformCarryWeight())
.build(); .build();
} }
//已发布的自有车辆吨数 //已发布的自有车辆吨数
...@@ -82,6 +84,8 @@ public class OrderWeightServiceImpl implements OrderWeightService { ...@@ -82,6 +84,8 @@ public class OrderWeightServiceImpl implements OrderWeightService {
.truckDemand(orderInfo.getTruckDemand()) .truckDemand(orderInfo.getTruckDemand())
.platformCarryWeight(orderInfo.getPlatformCarryWeight()) .platformCarryWeight(orderInfo.getPlatformCarryWeight())
.platCanExtractWeight(orderInfo.getTransportWeight().subtract(platOrderGoodsWeight)) .platCanExtractWeight(orderInfo.getTransportWeight().subtract(platOrderGoodsWeight))
.ownCarryWeight(BigDecimal.ZERO)
.ownCanExtractWeight(BigDecimal.ZERO)
.build(); .build();
} }
if(Objects.equals(orderInfo.getTruckDemand(), TruckDemandEnum.TruckType.OWNER_CAR.getCode())){ if(Objects.equals(orderInfo.getTruckDemand(), TruckDemandEnum.TruckType.OWNER_CAR.getCode())){
...@@ -89,6 +93,8 @@ public class OrderWeightServiceImpl implements OrderWeightService { ...@@ -89,6 +93,8 @@ public class OrderWeightServiceImpl implements OrderWeightService {
.truckDemand(orderInfo.getTruckDemand()) .truckDemand(orderInfo.getTruckDemand())
.ownCarryWeight(orderInfo.getOwnCarryWeight()) .ownCarryWeight(orderInfo.getOwnCarryWeight())
.ownCanExtractWeight(orderInfo.getTransportWeight().subtract(ownOrderGoodsWeight)) .ownCanExtractWeight(orderInfo.getTransportWeight().subtract(ownOrderGoodsWeight))
.platformCarryWeight(BigDecimal.ZERO)
.platCanExtractWeight(BigDecimal.ZERO)
.build(); .build();
} }
if(Objects.equals(orderInfo.getTruckDemand(), TruckDemandEnum.TruckType.PLATFORM_ANY_CAR.getCode())){ if(Objects.equals(orderInfo.getTruckDemand(), TruckDemandEnum.TruckType.PLATFORM_ANY_CAR.getCode())){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论