同步代码

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> <artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version> <version>3.0.3</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

View File

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

View File

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