Commit 6cc4cbc2 by 刘继明

修改判断状态

parent bccef8be
......@@ -483,8 +483,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