Commit 5e54a35b authored by 周健威's avatar 周健威

Merge branch 'feature_chw_zjw2' into dev-chw

parents 92a9c059 164d7cc2
...@@ -434,6 +434,12 @@ public class OrderCancelBiz { ...@@ -434,6 +434,12 @@ public class OrderCancelBiz {
}}); }});
if(null != specialRent ) { if(null != specialRent ) {
//特惠租车 恢复排班记录
VehicleVO vehicle = vehicleFeign.getVehicleDetail(specialRent.getVehicleId()).getData();
Long delayTime = specialRentBiz.handleRent(specialRent, vehicle);
specialRent.setUpdTime(null);
specialRentBiz.updateSelectiveById(specialRent);
Integer status = SpecialRent.STATUS_AUTOCNL_TOPAY; Integer status = SpecialRent.STATUS_AUTOCNL_TOPAY;
if(SYS_TRUE.equals(baseOrder.getHasPay())) { if(SYS_TRUE.equals(baseOrder.getHasPay())) {
// //
...@@ -445,14 +451,10 @@ public class OrderCancelBiz { ...@@ -445,14 +451,10 @@ public class OrderCancelBiz {
setStatus(finalStatus); setStatus(finalStatus);
setOrderStatus(SpecialRent.ORDER_STATUS_CANCEL); setOrderStatus(SpecialRent.ORDER_STATUS_CANCEL);
}}); }});
rabbitProduct.sendSpecialDelayMessage(specialRentBiz.selectById(specialRent.getId()), delayTime);
} }
//特惠租车 恢复排班记录
VehicleVO vehicle = vehicleFeign.getVehicleDetail(specialRent.getVehicleId()).getData();
Long delayTime = specialRentBiz.handleRent(specialRent, vehicle);
specialRent.setUpdTime(null);
specialRentBiz.updateSelectiveById(specialRent);
rabbitProduct.sendSpecialDelayMessage(specialRentBiz.selectById(specialRent.getId()), delayTime);
} }
}else if(OrderTypeEnum.TOUR.getCode().equals(baseOrder.getType())) { }else if(OrderTypeEnum.TOUR.getCode().equals(baseOrder.getType())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment