|
|
|
|
|
|
|
|
IssueOrderinfo orderInfo = orderInfoRepo.findByOrderNo(vo.getOrderId()); |
|
|
IssueOrderinfo orderInfo = orderInfoRepo.findByOrderNo(vo.getOrderId()); |
|
|
if (IssueOrderStep.ACTIVED == orderInfo.getOrderStep() && IssueOrderStatus.ACTIVE == orderInfo.getOrderStatus()) |
|
|
if (IssueOrderStep.ACTIVED == orderInfo.getOrderStep() && IssueOrderStatus.ACTIVE == orderInfo.getOrderStatus()) |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当前订单[" + orderInfo.getOrderNo() + "]已激活成功,请勿重复提交!"); |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当前订单[" + orderInfo.getOrderNo() + "]已激活成功,请勿重复提交!"); |
|
|
|
|
|
if (IssueOrderStep.WAITING_ACTIVE != orderInfo.getOrderStep()) { |
|
|
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("订单当前状态不可激活"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|