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