同步代码

This commit is contained in:
lulz1 2024-02-29 13:32:13 +08:00
parent ee0abe3fbf
commit e4ba73bbf1
3 changed files with 4 additions and 3 deletions

View File

@ -75,6 +75,7 @@
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
</dependencies>
<build>

View File

@ -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);
}
}

View File

@ -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);
}