Commit 95696681 by 刘继明

Merge branch 'feature/20210629-骑手未配送前支持手动取消-liujiming' into qa

parents e64cbd5f 6cc4cbc2
......@@ -534,8 +534,15 @@ public class OrderVerifyHandle {
return ResponseUtil.error(ResponseResult.ORDER_NOT_EXIST);
}
//校验订单配送状态
if (DeliveryStatus.DELIVERYCANCEL.getCode()!=orderBean.getDeliverStatus()){
return ResponseUtil.error(ResponseResult.ORDER_STATUS_FAILED);
DeliveryStatus deliveryStatus= DeliveryStatus.getDeliveryStatusByCode(orderBean.getDeliverStatus());
switch (deliveryStatus) {
case ALLOTRIDER:
case RIDERARRIVESTORE:
case RIDERGETMEAL:
case DELIVERYARRIVED:
return ResponseUtil.error(ResponseResult.ORDER_STATUS_FAILED);
default:
break;
}
return ResponseUtil.success();
......
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