| | |
| | | for (Code code : codeList) { |
| | | List<Long> adjacencyNode = routeService.getAdjacencyNode(code.getId()); |
| | | this.adjacencyCodeMap.put(code.getData(), adjacencyNode.stream().map(node -> ( |
| | | codeService.getById(node).getData() |
| | | codeService.getCacheById(node).getData() |
| | | )).collect(Collectors.toList())); |
| | | } |
| | | } |
| | |
| | | return true; |
| | | } |
| | | |
| | | Code parentCode = codeService.selectByData(parent); |
| | | Code currentCode = codeService.selectByData(current); |
| | | Code neighborCode = codeService.selectByData(neighbor); |
| | | Code parentCode = codeService.getCacheByData(parent); |
| | | Code currentCode = codeService.getCacheByData(current); |
| | | Code neighborCode = codeService.getCacheByData(neighbor); |
| | | |
| | | double direction1 = this.calculateDirection(parentCode, currentCode); |
| | | double direction2 = this.calculateDirection(currentCode, neighborCode); |