Showing
1 changed file
with
5 additions
and
2 deletions
@@ -759,8 +759,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -759,8 +759,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
759 | if (null == buyerOrder) { | 759 | if (null == buyerOrder) { |
760 | throw new ServiceException(400, "订单不存在"); | 760 | throw new ServiceException(400, "订单不存在"); |
761 | } | 761 | } |
762 | - if (Constant.BUYER_ORDER_STATUS_JUDGING.getByteVal() != buyerOrder.getStatus().byteValue()) { | ||
763 | - throw new ServiceException(400, "错误:订单状态变化,不允许取消订单,请重新刷新列表"); | 762 | + if (Constant.BUYER_ORDER_STATUS_APPRAISE_UNSURE.getByteVal() == buyerOrder.getStatus().byteValue()) { |
763 | + return; | ||
764 | + } | ||
765 | + if (Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal() != buyerOrder.getStatus().byteValue()) { | ||
766 | + throw new ServiceException(400, "错误:订单状态已变化"); | ||
764 | } | 767 | } |
765 | int operateType = OperateTypeEnum.ONLY_JUDGE_UNSURE.getCode(); | 768 | int operateType = OperateTypeEnum.ONLY_JUDGE_UNSURE.getCode(); |
766 | UserHelper userHelper = new UserHelper(); | 769 | UserHelper userHelper = new UserHelper(); |
-
Please register or login to post a comment