| | |
| | | private final MongoTemplate mongoTemplate; |
| | | private final XpElectronicFenceClient xpElectronicFenceClient; |
| | | private final XpElectronicClient xpElectronicClient; |
| | | private final XpTestPointClient testPointClient; |
| | | |
| | | |
| | | |
| | |
| | | public void addTestOrder(AddTestOrderVo query) { |
| | | Long startTestPointId = query.getStartTestPointId(); |
| | | Long endTestPointId = query.getEndTestPointId(); |
| | | XpTestPoint xpPoint = xpTestPlanClient.getXpTestPointById(startTestPointId).getData(); |
| | | XpTestPoint endXpPoint = xpTestPlanClient.getXpTestPointById(endTestPointId).getData(); |
| | | XpTestPoint xpPoint = testPointClient.queryById(startTestPointId).getData(); |
| | | XpTestPoint endXpPoint = testPointClient.queryById(endTestPointId).getData(); |
| | | if(xpPoint ==null || xpPoint.getOperationStatus()!=2){ |
| | | throw new ServiceException("起站点已停止运营", 200,I18nKeyConstant.NO_CURRENT_POINT); |
| | | } |