同步代码
This commit is contained in:
parent
ee0abe3fbf
commit
e4ba73bbf1
1
pom.xml
1
pom.xml
|
@ -75,6 +75,7 @@
|
|||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<version>3.0.3</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -85,8 +85,6 @@ public class LocationRepositoryImpl implements LocationRepository {
|
|||
|
||||
@Override
|
||||
public List<Location> findHotCitiesByCityName(List<String> locationNames) {
|
||||
List<Location> hotCities =
|
||||
jdbcLocationRepository.findByLocationNameInAndLocationPathContainingAndLevel(locationNames,"3106_1_",3);
|
||||
return hotCities;
|
||||
return jdbcLocationRepository.findByLocationNameInAndLocationPathContainingAndLevel(locationNames,"3106_1_",3);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,5 +27,7 @@ public interface JdbcLocationRepository extends CrudRepository<Location, Long> {
|
|||
|
||||
List<Location> findByLocationNameIn(Collection<String> locationName);
|
||||
|
||||
List<Location> findByLocationNameInAndLocationPathContainingAndLevel(Collection<String> locationName, String locationPath, Integer level)
|
||||
|
||||
List<Location> findByLocationIdIn(Collection<Long> locationId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue