提交 a3ab2588 authored 作者: liuhaiquan's avatar liuhaiquan

修改自由车辆逻辑判断

上级 c0d65f8c
...@@ -1455,7 +1455,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -1455,7 +1455,7 @@ public class OrderChildServiceImpl implements OrderChildService {
if (orderGoodsTruckBind == null) { if (orderGoodsTruckBind == null) {
return; return;
} }
if(!Objects.equals(orderGoods.getVehicleUsage(), VehicleUsageEnum.Status.OWN.getCode())){ if(Objects.equals(orderGoods.getVehicleUsage(), VehicleUsageEnum.Status.OWN.getCode())){
return; return;
} }
orderGoodsTruckBind.setStatus(OrderGoodsTruckBind.Status.ORDER.getCode()); orderGoodsTruckBind.setStatus(OrderGoodsTruckBind.Status.ORDER.getCode());
...@@ -1466,7 +1466,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -1466,7 +1466,7 @@ public class OrderChildServiceImpl implements OrderChildService {
* 更新定向派单状态 (拒绝) * 更新定向派单状态 (拒绝)
*/ */
private void updateOrderGoodsDirectReject(OrderGoods orderGoods,OrderGoodsTruckBind orderGoodsTruckBind) { private void updateOrderGoodsDirectReject(OrderGoods orderGoods,OrderGoodsTruckBind orderGoodsTruckBind) {
if(!Objects.equals(orderGoods.getVehicleUsage(),VehicleUsageEnum.Status.OWN.getCode())){ if(Objects.equals(orderGoods.getVehicleUsage(),VehicleUsageEnum.Status.OWN.getCode())){
//定向平台车辆取消绑定,自由车辆状态绑定状态不变 //定向平台车辆取消绑定,自由车辆状态绑定状态不变
return; return;
} }
...@@ -1482,7 +1482,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -1482,7 +1482,7 @@ public class OrderChildServiceImpl implements OrderChildService {
if (orderGoodsTruckBind == null) { if (orderGoodsTruckBind == null) {
return; return;
} }
if(!Objects.equals(orderGoods.getVehicleUsage(),VehicleUsageEnum.Status.OWN.getCode())){ if(Objects.equals(orderGoods.getVehicleUsage(),VehicleUsageEnum.Status.OWN.getCode())){
//定向平台车辆取消绑定,自由车辆状态绑定状态不变 //定向平台车辆取消绑定,自由车辆状态绑定状态不变
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论