| | |
| | | log.info("当前区域暂未开通,下单失败 {}", uid); |
| | | throw new ServiceException("当前区域未开通服务", I18nKeyConstant.NO_CURRENT_REGION); |
| | | } |
| | | boolean inTime = xpPointClient.nowInTimePoint(dto.getEndPointId()).getData(); |
| | | if (!inTime) { |
| | | throw new ServiceException("终点点位未开通服务", I18nKeyConstant.NO_CURRENT_REGION); |
| | | } |
| | | // 终点 |
| | | XpPoint endXpPoint = xpPointService.getById(dto.getEndPointId()); |
| | | if(endXpPoint ==null || endXpPoint.getOperationStatus()!=2){ |
| | | throw new ServiceException("该站点已停止运营", 200,I18nKeyConstant.NO_CURRENT_POINT); |
| | | } |
| | | boolean inTime = xpPointClient.nowInTimePoint(dto.getEndPointId()).getData(); |
| | | if (!inTime) { |
| | | throw new ServiceException("当前点位未开通服务", I18nKeyConstant.NO_CURRENT_REGION); |
| | | } |
| | | |
| | | //修改订单数据 |