This commit is contained in:
邱贞招 2024-11-13 22:55:21 +08:00
parent dc40089668
commit d914843e67

View File

@ -692,8 +692,8 @@ public class RlOrderServiceImpl implements IRlOrderService
}
return Boolean.TRUE;
});
if(!execute)throw new ServiceException("订单取消失败");
return false;
if(Boolean.FALSE.equals(execute))throw new ServiceException("订单取消失败");
return true;
}
/**
@ -707,9 +707,9 @@ public class RlOrderServiceImpl implements IRlOrderService
int i = orderMapper.updateRlOrderByOrderNo(rlOrder);
/** 记录订单履历 */
RlOrderVO order = orderMapper.selectRlOrderByOrderNo(orderNo);
if(orderOperService.recordOrderHistory(orderNo,ServiceConstants.ORDER_OPERATION_DEDUCTION,
if(!orderOperService.recordOrderHistory(orderNo,ServiceConstants.ORDER_OPERATION_DEDUCTION,
order.getStatus(),order.getStatus(),order.getPayFee(),order.getPayFee(),order.getUserId(),order.getPhone(),"车损扣款:扣款金额:"+money+",实际押金退款:"+order.getDeposit()+"-"+money)){
throw new ServiceException("改价】更新订单信息失败");
throw new ServiceException("车损扣款】更新订单信息失败");
}
return i>0;
}