| | |
| | | throw new ServiceException("当前订单状态不允许取消,只有待接单、待出发、接驾中状态的订单可以取消", I18nKeyConstant.ORDER_CANCEL_FAILED); |
| | | } |
| | | } else { |
| | | // 关闭订单:只有待付款(8)、待评价(9)状态可以关闭 |
| | | if (currentStatus != 7 && currentStatus != 8 && currentStatus != 9) { |
| | | throw new ServiceException("当前订单状态不允许关闭,只有待付款、待评价状态的订单可以关闭", I18nKeyConstant.ORDER_CLOSE_FAILED); |
| | | // 关闭订单:0=已取消,1=待接单,2=待出发,3=接驾中,4=待客上车,5=乘客已上车,6=服务中 状态可以关闭 |
| | | if (currentStatus == 7 || currentStatus == 8 || currentStatus == 9 || currentStatus == 10) { |
| | | throw new ServiceException("当前订单状态不允许关闭", I18nKeyConstant.ORDER_CLOSE_FAILED); |
| | | } |
| | | } |
| | | |