| | |
| | | import org.springframework.context.event.EventListener; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.security.MessageDigest; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.util.*; |
| | |
| | | if (this.adjacencyCodeMap.get(codeData).size() != 2) { |
| | | List<String> neighbors = this.adjacencyCodeMap.get(codeData); |
| | | for (String neighbor : neighbors) { |
| | | if (this.adjacencyCodeMap.get(neighbor) == null) { |
| | | log.info("cunzai"); |
| | | continue; |
| | | } |
| | | if (this.adjacencyCodeMap.get(neighbor).size() == 2 && !visited.contains(neighbor)) { |
| | | Lane lane = new Lane(String.valueOf(snowflakeIdWorker.nextId()).substring(3)); |
| | | lane.getCodes().add(codeData); // 包含起点 |