Commit 67c475bb authored by tangwei's avatar tangwei

解决冲突

parents 556d9ab3 c5174cfe
......@@ -327,14 +327,15 @@ public class CommonServiceImpl {
public List<StationCacheInfoDto> getListStationCacheInfoDto(){
List<StationCacheInfoDto> stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
if(stationCacheInfoDtoList!=null){
if(ObjectUtils.isEmpty(stationCacheInfoDtoList)){
try {
stationCacheDataInit.run();
stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
return stationCacheInfoDtoList;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment