|
|
@@ -59,8 +59,11 @@ public class OrderCancelManager extends AbstractOrderManager<OrderCancelRequest> |
|
|
|
protected void businessValidateInternal(ErrorMsgBuilder builder, OrderCancelRequest request, |
|
|
|
ServiceLogEvent event, Map<String, Object> dataStream) throws ServiceHandleException { |
|
|
|
IssueOrderinfo order = checkOrder(request.getOrderNo()); |
|
|
|
if (!IssueOrderStatus.NORMAL.equals(order.getOrderStatus()) || !ALLOW_CANCEL_STEP.contains(order.getOrderStep())) { |
|
|
|
throw newBusinessException("当前订单状态‘"+order.getOrderStatus().getStatus()+"’,阶段‘"+order.getOrderStep().getStep()+"’不支持取消"); |
|
|
|
if (!IssueOrderStatus.NORMAL.equals(order.getOrderStatus())) { |
|
|
|
throw newBusinessException("当前订单状态:"+order.getOrderStatus().getStatus()); |
|
|
|
} |
|
|
|
if (!ALLOW_CANCEL_STEP.contains(order.getOrderStep())) { |
|
|
|
throw newBusinessException("当前订单阶段:"+order.getOrderStep().getStep()+",不支持取消"); |
|
|
|
} |
|
|
|
// 取消订单的操作来源要判断 |
|
|
|
if (SourceType.CHANNEL.equals(order.getOrderSource()) || SourceType.SERVICE_HALL.equals(order.getOrderSource())) { |